all freeze command
#1

hi guys, i want to make this script to freeze only players that doesnt have admin levels:
PHP код:
CMD:freezeall(playeridparams[])
{
    if(
pInfo[playerid][pAdminLevel] < 3) return SendClientMessage(playeridCOLOR_GREY"You are not authorized to use this command.");
    foreach (new 
Player)
    {
        if(
pInfo[playerid][pAdminLevel] >= 0)
        {
            
TogglePlayerControllable(i0);
        }
    }
    new 
pname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpname,sizeof(pname));
    new 
string[60];
    
format(string,sizeof(string), "{FF0000}Admin %s {FFFFFF} has frozen everyone!"pname);
    
SendClientMessageToAll(-1string);
    return 
1;

Reply


Messages In This Thread
all freeze command - by XGreen - 12.08.2014, 15:20
Re: all freeze command - by Stinged - 12.08.2014, 15:35
Re: all freeze command - by Affan - 12.08.2014, 15:37
Re: all freeze command - by Stinged - 12.08.2014, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)