24.12.2011, 20:11
pawn Код:
if(strcmp("/cop", cmdtext, true, 10) ==0)
{
if (IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0x80FFFFFF, "You are now a cop!");
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 24, 9999);
SetPlayerSkin(playerid, 280);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You are not an Admin!")
}
return 1;
}