21.05.2016, 16:37
Use curly braces.
Код:
CMD:gun(pid,params[]) { if(IsPlayerAdmin(playerid)) { GivePlayerWeapon(pid, 38, 6000); GivePlayerWeapon(pid, 24, 6000); GivePlayerWeapon(pid, 4, 1); SCM(pid, COLOR_LIGHTBLUE, " You have been granted admin weapons."); } else SCM(pid, COLOR_RED, ADMIN_MESSAGE); return 1; } CMD:aod(pid, params[]) { if(!IsPlayerAdmin(playerid)) SCM(pid, COLOR_RED, ADMIN_MESSAGE); else { SPH(pid, 400); SetPlayerArmour(pid, 100); SCMToAll(COLOR_LIME, "Admin %s is now on duty. /w him for help."); } return 1; }