Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Fiki
this is functionaly:
Quote:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/kill",true) == 0)
{
SetPlayerHealth(playerid, 0);
return 1;
}
return 1;
}
|
|
No, it should be like this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/kill", true) == 0) { SetPlayerHealth(playerid, 0); return 1; } return 0; }
|
oppps, yeah this is good i write wrong return