Getting the players pickup, outside of onplayerpickuppickup
#1

Hi everyone,

I have a little problem here..
I am changing my script's pickups, and i'm making it with onplayerkeystatechange and pressing space to use the pickup, i think you get me.
well anyways, the problem is, that i don't know how to get the player's pickup, outside of the onplayerpickupickup callback.
Is there anyone who heard of something, a stock function perhaps, that does this?

I hope someone can help me.
Thanks in advance
Reply
#2

IsPlayerInRangeOfPoint ?
Reply
#3

You can make something like:
When the players picks up the pickid , Make a new array and set it to 1. Check for YourButton location , array which is 1 or not. If the key is is pressed and the player is on pickup (array==1) and IsPlayerInRangeOfPoint also return 1 then it will show the command.
Reply
#4

nvm, got it, and i think you guys are going to LOL...
i just added a variable, PickupNumber[MAX_PLAYERS]; , and under onplayerpickuppickup, i added PickupNumber[playerid] = pickupid;
i placed PickupNumber[playerid] in my code, and it works..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)