[Help]Kinda abuse
#1

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
Reply
#2

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)
Reply
#3

Thanks dude!
It worked, +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)