Posts: 561
Threads: 27
Joined: Sep 2012
Quote:
Originally Posted by Mister0
Try this
PHP код:
CMD:freeze(playerid, params)
{
new player1, second, reason[256];
if(!IsPlayerAdmin(playerid)) return 1;
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;
}
|
Instead of copying that code, why wouldn't you explain what you have done in each line ?