IsPlayerNotInAnyPickup
#1

Heey all,
How can i detect if a players is not in any pickup so i can make function for hiding the textdraws?
Thnks Admigo
Reply
#2

if(!IsPlayerInRangeofPickup(playerid, distance, coordinates of pickup)) ?
Reply
#3

Use a timer
Reply
#4

just use this:
pawn Код:
new InPickup[playerid];

public OnPlayerConnect(playerid)
{
  InPickup[playerid] = 0;
  return 1;
}

public OnPlayerSpawn(playerid)
{
  InPickup[playerid];
  return 1;
}

public OnPlayerPickupPickUp(playerid, pickupid)
{
  InPickup[playerid] = 1;
  SetTimerEx("OutOfPickup", 2000, false, "i", playerid);
  return 1;
}

forward OutOfPickup(playerid);
public OutOfPickup(playerid)
{
  InPickup[playerid] = 0;
  return 1;
}

stock IsPlayerInAnyPickup(playerid)
{
  return InPickup[playerid];
}
(for example... )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)