[Ajuda] Com Timer. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Com Timer. (
/showthread.php?tid=370204)
Com Timer. -
Bieeel_Cwb - 19.08.2012
Queria saber como eu coloco tipo o mlq aperta f la no local e sу depois de 5 Minutos pode apertar F denovo?
Obg
Re: Com Timer. -
Lucas Carneiro™ - 19.08.2012
pawn Код:
CreatObject
IsPlayerInRangePoint
Settimer
Variavel (new)
Estude isso e conseguirб.
Re: Com Timer. -
Jason` - 19.08.2012
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 16)
{
if(gettime() >= GetPVarInt(playerid, "useKey"))
{
// Funзхes
SetPVarInt(playerid, "useKey", gettime() + 60 * 5);
}
}
return 1;
}
Veja se funciona.