10.07.2010, 14:30
now its like this:
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;
}
}
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;
}
}