17.10.2009, 14:18
I made a /help cmd and heres the script:public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
if(!strcmp(cmdtext,"/help", true))
{
SendClientMessage(playerid, COLOR_SILVER, "[SERVER]:This Server is Currently Under Construction,Help Feauture Will Be Updates ASAP!");
return true;
}
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_ORANGE," [!] You Killed Yourself [!]");
return 1;
}
return 0;
}
And it seems that this cmd is Unknown(Recieving the message:[SERVER]:Unknown Command....)Help Please?
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
if(!strcmp(cmdtext,"/help", true))
{
SendClientMessage(playerid, COLOR_SILVER, "[SERVER]:This Server is Currently Under Construction,Help Feauture Will Be Updates ASAP!");
return true;
}
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_ORANGE," [!] You Killed Yourself [!]");
return 1;
}
return 0;
}
And it seems that this cmd is Unknown(Recieving the message:[SERVER]:Unknown Command....)Help Please?