[Ayuda] Necesito con un comando.
#2

pawn Код:
new tsHola[MAX_PLAYERS];

CMD:hola(playerid, params[])
{
    if((gettime() - tsHola[playerid]) < 60 * 3) return SendClientMessage(playerid, -1, "Tienes que esperar 3 minutos para utilizar este comando de nuevo!");

    tsHola[playerid] = gettime();
    return 1;
}
Para mostrar el tiempo:
pawn Код:
(timepo) - (tsHola[playerid] - gettime())
Reply


Messages In This Thread
[Ayuda] Necesito con un comando. - by armandozetaxx - 02.05.2015, 01:26
Re: [Ayuda] Necesito con un comando. - by SickAttack - 02.05.2015, 01:51
Respuesta: [Ayuda] Necesito con un comando. - by armandozetaxx - 02.05.2015, 03:15
Re: Respuesta: [Ayuda] Necesito con un comando. - by SickAttack - 02.05.2015, 03:30
Respuesta: [Ayuda] Necesito con un comando. - by armandozetaxx - 02.05.2015, 03:36

Forum Jump:


Users browsing this thread: 1 Guest(s)