About pickups.
#1

Hello everyone, I was wondering if there's a way, to prevent the looping of a pickup, or at least make it longer then a second, once I am standing at a pickup, (weapons shop for example), the pickups keeps getting looped over and over, which prevents me from buying a weapon normally. Anyway to stop that, or place a timer between them?
Reply
#2

I think a variable to check if the player is using the pickup, or perhaps a timer would be the most effecient way to prevent the loop.
Reply
#3

Quote:
Originally Posted by babecka
Посмотреть сообщение
I think a variable to check if the player is using the pickup, or perhaps a timer would be the most effecient way to prevent the loop.
I might use a code example, as I am not really "pro" scripter, hehe.
Reply
#4

Hello Cesar Lauren Tom,

1) In top of your script
pawn Код:
new HasArrived[MAX_PLAYERS];
And where your pickups take place looping or whatever put a condition for instance,

pawn Код:
if(HasArrived[playerid])
{
// your code
}
Under OnPlayerConnect ---> clear the var.
Contact me on skype for a lesson or whatever
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)