Need Help with Errors!
#6

pawn Код:
dcmd_freezeall(playerid,params[]) {
    #pragma unused params
    if(IsPlayerCommandLevel(playerid,"freezeall")) {
        for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) TogglePlayerControllable(i,false);
    #pragma unused params
    if(IsPlayerCommandLevel(playerid,"unfreezeall")) {
        SendCommandMessageToAdmins(playerid,"UNFREEZEALL");
        for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) TogglePlayerControllable(i,true);
        new string[256],name[24]; GetPlayerName(playerid,name,24); format(string,256,"Administrator \"%s\" unfrozen everyone.",name); return SendClientMessage(playerid,yellow,string);
    } else return SendLevelErrorMessage(playerid,"unfreezeall");
}
}  // <------------------- HERE
Reply


Messages In This Thread
Need Help with Errors! - by Tigerbeast11 - 05.08.2011, 16:27
AW: Need Help with Errors! - by Drebin - 05.08.2011, 16:55
Re: Need Help with Errors! - by Tigerbeast11 - 05.08.2011, 16:58
Re: Need Help with Errors! - by taborda11 - 05.08.2011, 17:07
Re: Need Help with Errors! - by Tigerbeast11 - 05.08.2011, 17:09
Re: Need Help with Errors! - by MadeMan - 05.08.2011, 17:23
Re: Need Help with Errors! - by Tigerbeast11 - 05.08.2011, 17:26

Forum Jump:


Users browsing this thread: 3 Guest(s)