09.08.2017, 14:32
Код:
CMD:fackick(playerid,params[]) { if(pInfo[playerid][AdminLevel] >= 3 || pInfo[playerid][pFacLeader] == 1) { new targetid; new string[144]; new sext[20]; if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "/fackick [id]"); if(targetid != INVALID_PLAYER_ID) { if(pInfo[targetid][pFacID] == 1) { sext = "Police Departament"; } new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(targetid, PlayerName, MAX_PLAYER_NAME); pInfo[targetid][pFacID] = 0; pInfo[targetid][pFacPRank] = 0; format(string,sizeof(string),"Nick, %s (ID:%d) fost dat afara din factiunea %s",PlayerName,targetid,sext); SendClientMessage(playerid,0xFFFFFFAA,string); SendClientMessage(targetid,0xFFFFFFAA,string); } } else { SendClientMessage(playerid, COLOR_RED, "Only certain levels of Administration have access to this command."); } return 1; }