help = rep++ (freeze all command)
#1

I need help making a freeze all command please
Reply
#2

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
Reply
#3

What processor you are using? ZCMD or STRCMP?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)