SA-MP Forums Archive
From all commands i die! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: From all commands i die! (/showthread.php?tid=72672)



From all commands i die! - krisis32 - 10.04.2009

I got few commands!
When i use.. example... /me ..
It should show: /me [action]
But it just kill me...
Whys that?
When i use other cmd.. i die too...


Re: From all commands i die! - Klutty - 10.04.2009

Do you have
pawn Код:
SetPlayerHealth(playerid, **);
on every command..?


Re: From all commands i die! - dafel2 - 10.04.2009

lol give us your script
and thats on every command?


Re: From all commands i die! - krisis32 - 10.04.2009

lol.. no it isnt... thers one command :

pawn Код:
if(strcmp(cmd, "/kill", true) == 0)
  {
  SetPlayerHealth(playerid, 0.0);
  return true;
  }



Re: From all commands i die! - krisis32 - 10.04.2009

any idea?


Re: From all commands i die! - Klutty - 10.04.2009

I guess remove the kill command, try.


Re: From all commands i die! - OmeRinG - 10.04.2009

Are we supposed to guess? send us your OnPlayerCommandText public...
And the only reason that will happen is because you have SetPlayerHealth(playerid,0); on top of your OnPlayerCommandText, or a calling to a function that does that