View Single Post
  #1  
Old 12-16-2011, 09:51 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Bugged flags opening

I have been working on a custom PK system. While checking if it works, I always had to open the players flags to check the health.

While that I realized, if you use in client-RC ´/openflags communityname´ it doesn´t seem like it´s updating the players flags (same in extern RC with ´/open communityname´), because for me they didn´t change.
It just seems to update these if you use ´/openflags account´ (or in extern RC ´/open accoung´). Then the flags always had been updated. After that I tried using the way with using the players communityname and that still wasn´t updated. Maybe it´s just me making something wrong, but I don´t think so.

Here is the script:
PHP Code:
public function Damage(damage) {
  if ((
clientr.player_hp damage) > 0)
    
clientr.player_hp -= damage;
  else 
clientr.player_hp 0;

It´s inside a class joined to the player. To use it I use something like:
PHP Code:
temp.epl findnearestplayer(FP[0], FP[1]);
if (
player.canDamage(epl)) {
  
epl.Damage(5);
  
epl.chat epl.GetHP() SPC epl.getHPMax();

So is it the script or does that happen to any of you guys?

I hope this can get fixed
__________________
MEEP!
Reply With Quote