[Help]Kinda abuse - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]Kinda abuse (
/showthread.php?tid=396775)
[Help]Kinda abuse -
[CG]Milito - 02.12.2012
Hello!
It's me again
I need some help with this: I've made some pickups around LV that gives you money/score but people abuse it, they are always standing near the pickups so, they can get score again.
How can i make timer? Can you help me?
Thanks in advance
Re: [Help]Kinda abuse -
stabker - 02.12.2012
In the top:
pawn Код:
new bonus_limit[MAX_PLAYERS];
And add into your bonus pickup this:
pawn Код:
new rtime = gettime();
if(bonus_limit[playerid] > rtime)return SendClientMessage(playerid, -1, "Your message...");
else
{
//here we give bonus... put your code
bonus_limit[playerid] = rtime+600; //600 sec (10 minutes) waiting time, you can replace it
}
(Sorry for my bad English, but i think, it can help you)
Re: [Help]Kinda abuse -
[CG]Milito - 02.12.2012
Thanks dude!
It worked, +Rep