10.06.2013, 18:45
aca te dejo para que te orientes un poco mas, pero tambien lo puedes hacer con el include que te gusto ne el post anterio
:P.
Saludos.
:P.Saludos.
pawn Код:
#include <a_samp>
#define TIEMPO_ENCARCELADO (60) //En 60 segundos
new MatarTimer[MAX_PLAYERS];
new bool:Encarcelado[MAX_PLAYERS]=false;
new ContarTiempo[MAX_PLAYERS];
MatarTimer[playerid]=SetTimerEx("Encarcelar", 1000, true, "d", playerid);
Encarcelado[playerid]=true;
ContarTiempo[playerid]=TIEMPO_ENCARCELADO;
forward Encarcelar(playerid);
public Encarcelar(playerid) {
ContarTiempo[playerid]--;
if(ContarTiempo[playerid]<=0) {
// TU FUNCION
ContarTiempo[playerid]=0;
Encarcelado[playerid]=false;
KillTimer(MatarTimer[playerid]);
}
}
