10.07.2010, 14:36
fix:
put a } after an end of command,public,etc...
u didn't put } on the end of /killme
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/killme", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
return 1;
}
if(!strcmp(cmdtext,"/help",true))
{
SendClientMessage(playerid,0xFFFFFFAA,"Help command!");
return 1;
}
}
u didn't put } on the end of /killme