Unusual bug
#3

Код:
CMD:freezeall(playerid, params[])
{
	//check if the player is a admin
	LevelCheck(playerid, 3);

	LOOP_PLAYERS(i)
	{
        if(i != playerid)
        {
            if(GetPlayerGAdminLevel(playerid) < GetPlayerGAdminLevel(i))
            {
				TogglePlayerControllable(i, false);
				PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
            }
		}
	}
	PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);

	new string[144];
	format(string, sizeof(string), "* admin %s[%i] has freezed all players.", ReturnPlayerName(playerid), playerid);
	SendClientMessageToAll(COLOR_DODGER_BLUE, string);
	return 1;
}
No output
Reply


Messages In This Thread
Unusual bug - by OmerKhan - 14.03.2018, 07:01
Re: Unusual bug - by Zeth - 14.03.2018, 07:23
Re: Unusual bug - by OmerKhan - 14.03.2018, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)