19.09.2012, 17:17
pawn Код:
if (strcmp("/heal", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, 0xFFA600FF, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xE62525FF, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, 0xE62525FF, "(INFO) Welcome to my Server's HELP command!");
SendClientMessage(playerid, 0xE62525FF, "(INFO) Hope you enjoy the tutorial!");
return 1;
}
return 0;
}