Help with freezeall command
#2

Код:
COMMAND:freezeall(playerid, params[])
{
    if(PlayerInfo[playerid][power] < 4) return SendClientError(playerid, CANT_USE_CMD);
    PlayerLoop(i)
    {
        SendClientMSG(i, COLOR_YELLOW, "[Admin] All players have been frozen by Admin %s", RPName(playerid));
        frozen[i] = 1;
        TogglePlayerControllable(i, false);
	}
	return 1;
}
COMMAND:unfreezeall(playerid, params[])
{
    if(PlayerInfo[playerid][power] < 4) return SendClientError(playerid, CANT_USE_CMD);
    PlayerLoop(i)
    {
        SendClientMSG(i, COLOR_YELLOW, "[Admin] All players have been un-frozen by Admin %s", RPName(playerid));
        frozen[i] = 0;
        TogglePlayerControllable(i, true);
		SetPVarInt(i, "Tied", 0);
	}
	return 1;
}
There you go +rep if it helped
Reply


Messages In This Thread
Help with freezeall command - by SFA7X - 16.10.2013, 17:12
Re: Help with freezeall command - by xdarren - 16.10.2013, 17:14
Re: Help with freezeall command - by Patrick - 16.10.2013, 17:17

Forum Jump:


Users browsing this thread: 1 Guest(s)