Any command kill you!
#1

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

Pastebin your OnPlayerCommandText function.
Reply
#3

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

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;
}
Reply
#5

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);
Reply
#6

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

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

Put your whole OnPlayerCommandText callback on pastebin and show us.
Reply
#9

Here it is http://pastebin.com/m1a0198bd
Reply
#10

Fail?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)