24.02.2014, 08:13
use mine server makeadmin--
Код:
CMD:makeadmin(playerid,parmas[]) { if(IsPlayerAdmin(playerid)) { new targetid,lvl,dis[150]; if(sscanf(parmas,"ui",targetid,lvl))return SendClientMessage(playerid,-1,"{ff0000}Wrong Usagge | Correct Usage /makeadmin playerid adminLevel"); pInfo[targetid][pAdmin]=lvl; if(lvl>=1) {format(dis,sizeof(dis),"~g~Congratulations you have now~n~~r~been made admin level %i",lvl); GameTextForPlayer(targetid,dis,9000,6); PlayerPlaySound(targetid, 4201 , 0.0, 0.0, 0.0); } if(lvl==0) { format(dis,sizeof(dis),"~r~You have been demoted form the post of admin~n~~g~Thnaks for the service"); GameTextForPlayer(targetid,dis,9000,6);}} else SendClientMessage(playerid, -1,"{ff0000}You are not authorized to use this command."); return 1;}