Equip command with timer
#2

You should use GetTickCount()


pawn Код:
new EquipTickCount[MAX_PLAYERS];
At the start of the command:

pawn Код:
EquipTickCount[playerid] = GetTickCount();

if(GetTickCount()-EquipTickCount[playerid] < 600000/*I think it's 10 minutes*/) return /*ERROR MESSAGE*/;
It's something like this.
Reply


Messages In This Thread
Equip command with timer - by Jimbo01 - 02.03.2011, 11:18
Re: Equip command with timer - by Sasino97 - 02.03.2011, 11:45
Re: Equip command with timer - by Jimbo01 - 02.03.2011, 12:27
Re: Equip command with timer - by Jimbo01 - 02.03.2011, 14:36
Re: Equip command with timer - by JaTochNietDan - 02.03.2011, 14:46
Re: Equip command with timer - by Sasino97 - 02.03.2011, 14:50
Re: Equip command with timer - by JaTochNietDan - 02.03.2011, 14:52
Re: Equip command with timer - by Sasino97 - 02.03.2011, 14:58
Re: Equip command with timer - by JaTochNietDan - 02.03.2011, 15:00
Re: Equip command with timer - by Jimbo01 - 02.03.2011, 15:03

Forum Jump:


Users browsing this thread: 3 Guest(s)