їCуmo hacer esto?
#2

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.

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]);
    }
}
Reply


Messages In This Thread
їCуmo hacer esto? - by Crahan - 10.06.2013, 18:32
Respuesta: їCуmo hacer esto? - by OTACON - 10.06.2013, 18:45
Respuesta: їCуmo hacer esto? - by Crahan - 10.06.2013, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)