13.03.2011, 15:00
A variable for jailing the player:
On the command, after setting player position (jailing him), put that:
Also a timer:
Also the cllback function:
pawn Код:
new jailed[MAX_PLAYERS]; // Put it on script top (global variable)
forward UnJail();
pawn Код:
jailed[toplayer] = 1;
pawn Код:
SetTimer("UnJail",180000,false); // 60000ms = 1min || 180000 = 3min
pawn Код:
public UnJail()
{
for(new v; v < MAX_PLAYERS; v++)
{
if(jailed[v] == 1)
{
SetPlayerPos(v, x, y, z); // Change x y z for the position you want the players go after unjailed
jailed[v] = 0;
}
return 1;
}