Check if player is in a pickup
#1

I'm working on a command just now that can only be typed if your in a pickup, is there a way to do if(IsPlayerInPickup or anything

If not I take it I'll just have to get the coords of the pickup and do a 'IsPlayerInRangeOfPoint'?
Reply
#2

Just use IsPlayerInRangeOfPoint.
Reply
#3

when you enter the pickup, set a variable containing the actual GetTickCount(), and when the command gets called, compare the stored ticks with the actual ticks: if GetTickCount()-StoredTicks[playerid]<3000, then perform the command, else abort.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)