scripting help!
#1

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:
Код:
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;
}
Reply


Messages In This Thread
scripting help! - by ahameed4755 - 03.10.2015, 14:54
Re: scripting help! - by dh240473 - 03.10.2015, 14:58
Re: scripting help! - by Lordzy - 03.10.2015, 15:00
Re: scripting help! - by ahameed4755 - 03.10.2015, 15:02

Forum Jump:


Users browsing this thread: 3 Guest(s)