15.12.2011, 06:48
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
}