14.01.2014, 00:29
http://pastebin.com/mp3083vi
http://pastebin.com/u/OtaconEvil
https://sampwiki.blast.hk/wiki/ApplyAnimation_Es
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;
}