SA-MP Forums Archive
Any command kill you! - 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: Any command kill you! (/showthread.php?tid=90417)



Any command kill you! - Antonio [G-RP] - 08.08.2009

Title says it all. In my script any command will kill you. Help please?


Re: Any command kill you! - Popo2006 - 08.08.2009

Pastebin your OnPlayerCommandText function.


Re: Any command kill you! - Mowgli - 08.08.2009

You got a /kill command in that script? show us that command


Re: Any command kill you! - Antonio [G-RP] - 08.08.2009

pawn Код:
if (strcmp(cmd, "/kill", true) == 0)
{
SendClientMessage(playerid, COLOR_RED, "[!] You have fallen unconscious due to severe wounds!");
SetPlayerHealth(playerid, 0.0);
InjuredSpawn[playerid] = 1;
return 1;
}



Re: Any command kill you! - snoob - 08.08.2009

Quote:
Originally Posted by Antonio (scripting new server!)
Title says it all. In my script any command will kill you. Help please?
ANY /command !!?? LOL
Код:
//find this
public OnPlayerCommandText(playerid, cmdtext[])
{
  //paste this
  SetPlayerHealth(playerid, 0.0);



Re: Any command kill you! - Antonio [G-RP] - 08.08.2009

No, i dont WANT every command to kill you, I want it to stop happening!


Re: Any command kill you! - Antonio [G-RP] - 08.08.2009

wait.. is there a way for it to wait like 1 second, and then say another message?


Re: Any command kill you! - Ez - 08.08.2009

Put your whole OnPlayerCommandText callback on pastebin and show us.


Re: Any command kill you! - Antonio [G-RP] - 08.08.2009

Here it is http://pastebin.com/m1a0198bd


Re: Any command kill you! - ruarai - 08.08.2009

Fail?