29.11.2011, 04:58
look i have made a cmd of aduty when i compile it it complie easly but when i on the game the command dosen't work please help me
Code:
dcmd_duty(playerid,params[]){ new string[128]; new aname[MAX_PLAYER_NAME]; if(!IsPlayerAdmin(playerid)) return 0; GetPlayerName(playerid,aname,sizeof(aname)); format(string,sizeof(string),"Administrator %s is now on Duty",aname,playerid); admin[playerid] = Create3DTextLabel("ADMIN ON DUTY[DONT ATTACK]", red, 30.0, 40.0, 50.0, 40.0, 0); SendClientMessage(playerid, COLOR_RED, string); SetPlayerColor(playerid, 0xFFFF00AA) SetPlayerArmour(playerid,999999); SetPlayerHealth(playerid,999999); SetPlayerSkin(playerid, 217); else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command"); return 1; }