SA-MP Forums Archive
help = rep++ (freeze all command) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help = rep++ (freeze all command) (/showthread.php?tid=373327)



help = rep++ (freeze all command) - megamind2067 - 30.08.2012

I need help making a freeze all command please


Re: help = rep++ (freeze all command) - CoDeZ - 30.08.2012

pawn Код:
CMD:freezeall(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You are not an admin to use ths command");
    for(new i; i<MAX_PLAYERS; i++)
    {
        TogglePlayerControllable(i,0);
    }
    new p_Name[24],str[128];
    GetPlayerName(playerid,p_Name,24);
    format(str,sizeof(str),"Admin %s[%d] has freezed all players",p_Name,playerid);
    SendClientMessageToAll(-1,str);
    return 1;
}
you will need zcmd for this


Re: help = rep++ (freeze all command) - Kevin FOx - 30.08.2012

What processor you are using? ZCMD or STRCMP?