[Consulta]Usar animacion cada x sgdos
#3

http://pastebin.com/mp3083vi
http://pastebin.com/u/OtaconEvil
https://sampwiki.blast.hk/wiki/ApplyAnimation_Es

pawn Код:
#include <a_samp>
#include <SetTimerCMD>
#define pressed(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
    if(pressed(KEY_FIRE)){
        if(GetTimerCMD(playerid,1)) {
            new str[128];
            format(str, sizeof(str), "[TEST 2] Debes Esperar %d Segundos Para Volver a Utilizar La funcion!.", GetSegTimetCMD(playerid,1));
            return SendClientMessage(playerid, -1, str);
        }
        SetTimerCMD(playerid,1,30); //30 =  30 segundos
        //TU FUNCION...
    }
    return true;
}
Reply


Messages In This Thread
[Consulta]Usar animacion cada x sgdos - by xeon_inside - 13.01.2014, 23:03
Respuesta: [Consulta]Usar animacion cada x sgdos - by Swedky - 14.01.2014, 00:10
Respuesta: [Consulta]Usar animacion cada x sgdos - by OTACON - 14.01.2014, 00:29

Forum Jump:


Users browsing this thread: 1 Guest(s)