/cage (id) (reason)
#5

Set timers. Example:
pawn Code:
// Top of the script
forward RemoveCageForPlayer(playerid);

// Example in the command
if(sscanf(params,"i",seconds))
{
    // The cage code
    SetTimerEx("RemoveCageForPlayer",seconds * 1000,false,"i",playerid);
}

// Somewhere in the code
public RemoveCageForPlayer(playerid)
{
    // Cage removal code
}
Reply


Messages In This Thread
/cage (id) (reason) - by SnG.Scot_MisCuDI - 15.12.2011, 02:19
Re: /cage (id) (reason) - by Ballu Miaa - 15.12.2011, 02:56
Re: /cage (id) (reason) - by SnG.Scot_MisCuDI - 15.12.2011, 03:23
Re: /cage (id) (reason) - by SnG.Scot_MisCuDI - 15.12.2011, 04:01
Re: /cage (id) (reason) - by suhrab_mujeeb - 15.12.2011, 06:48
Re: /cage (id) (reason) - by Scenario - 15.12.2011, 10:55
Re: /cage (id) (reason) - by vassilis - 15.12.2011, 14:19
Re: /cage (id) (reason) - by SnG.Scot_MisCuDI - 15.12.2011, 21:09
Re: /cage (id) (reason) - by Scenario - 15.12.2011, 21:17
Re: /cage (id) (reason) - by SnG.Scot_MisCuDI - 15.12.2011, 21:18

Forum Jump:


Users browsing this thread: 1 Guest(s)