freeze
#3

Quote:
Originally Posted by Mister0
Посмотреть сообщение
Try this

PHP код:

CMD
:freeze(playeridparams
{
 new 
player1secondreason[256];
 if(!
IsPlayerAdmin(playerid)) return 1;
 if(
sscanf(params"iis[256]"player1secondreson))
 return 
SendClientMessage(playerid, -1"/freeze [ID] [Second] [Reason]");
 
TogglePlayerControllable(playerid0); 
SetTimerEx("Unfreeze"second*1000false"i"playerid);
 return 
1

forward Unfreeze(playerid); 
public 
Unfreeze(playerid)
 { 
TogglePlayerControllable(playeridtrue);
 return 
1;
 } 
Instead of copying that code, why wouldn't you explain what you have done in each line ?
Reply


Messages In This Thread
freeze - by Trollerz - 19.09.2015, 21:48
Re: freeze - by Mister0 - 19.09.2015, 21:55
Re : Re: freeze - by KillerDVX - 19.09.2015, 23:17
Re: freeze - by Mister0 - 20.09.2015, 09:46
Re: freeze - by J4Rr3x - 20.09.2015, 10:03
Re: freeze - by jlalt - 20.09.2015, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)