all freeze command
#3

Quote:
Originally Posted by Stinged
Посмотреть сообщение
pawn Код:
CMD:freezeall(playerid, params[])
{
    if(pInfo[playerid][pAdminLevel] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    foreach (new i : Player)
    {
        if(pInfo[playerid][pAdminLevel] == 0)
        {
            TogglePlayerControllable(i, 0);
        }
    }
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname,sizeof(pname));
    new string[68];
    // This string uses more than 60 characters
    // Name(24 char) + {FF0000}Admin  {FFFFFFF}has frozen everyone! = 68
    format(string,sizeof(string), "{FF0000}Admin %s {FFFFFF}has frozen everyone!", pname);
    SendClientMessageToAll(-1, string);
    return 1;
}
You mean
pawn Код:
CMD:freezeall(playerid, params[])
{
    if(pInfo[playerid][pAdminLevel] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    foreach (new i : Player)
    {
        if(pInfo[i][pAdminLevel] == 0) // Checks if the looped players are not admin
        {
            TogglePlayerControllable(i, 0);
        }
    }
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname,sizeof(pname));
    new string[68];
    // This string uses more than 60 characters
    // Name(24 char) + {FF0000}Admin  {FFFFFFF}has frozen everyone! = 68
    format(string,sizeof(string), "{FF0000}Admin %s {FFFFFF}has frozen everyone!", pname);
    SendClientMessageToAll(-1, string);
    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)