24.12.2011, 20:25
Код:
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 0; } return 1; }
The return 0; makes sure that it doesn't give something back such as "Unknown command" -I think?
+Rep if I helped out :3