Animation freezing player.
#3

Code:
CMD:freeze(playerid, params)
{
   new player1, second, reason[256];
   if(!IsPlayerAdmin(playerid)) return 0;
   if(sscanf(params, "iis[256]", player1, second, reson)) return SendClientMessage(playerid, -1, "/freeze [ID] [Second] [Reason]");
   TogglePlayerControllable(playerid, 0);
   SetTimerEx("Unfreeze", second*1000, false, "i", playerid);
   return 1;
}

forward Unfreeze(playerid);
public Unfreeze(playerid)
{
    TogglePlayerControllable(playerid, true);
    return 1;
}
Reply


Messages In This Thread
Animation freezing player. - by Banditukas - 23.04.2015, 16:53
Re: Animation freezing player. - by Konstantinos - 23.04.2015, 16:55
Re: Animation freezing player. - by lanix - 23.04.2015, 17:39
Re: Animation freezing player. - by rt-2 - 17.06.2017, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)