03.10.2015, 14:54
hi im testing a /freeze command but it dosent work it gives me error [ERROR]:YOU are not rcon admin (im already logged in rcon)
code:
code:
Код:
CMD:freeze0(playerid,params[]) { if(IsPlayerAdmin(playerid))return SendClientMessage(playerid, COLOR_ERROR,"[ERROR]:you are not rcon admin"); new targetid, str[75], reason[84] , pname[MAX_PLAYER_NAME]; if(sscanf(params,"ui",targetid)) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]:Usage(playerid/reason)"); if(playerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ERROR, "[ERROR]:Player is not connected."); TogglePlayerControllable(targetid,0); format(str, sizeof(str), "admin %s has freezed you",pname); SendClientMessage(playerid,-1,"Player Has Been Freezed"); SendClientMessage(targetid, COLOR_ADMIN,str); return 1; }