01.12.2012, 19:46
Hello all
Umm i got lil problem. So far i have this code which works (opens the textdraw when i reach the pdenter pickup)
However, i would like to close the textdraw automatically when player leaves far enough from the pickup. I guess this should be done somehow with IsPlayerInRangeOfPoint & TextDrawHideForPlayer? Tried already some ways to fix, however the textdraw keeps staying on the window.
Umm i got lil problem. So far i have this code which works (opens the textdraw when i reach the pdenter pickup)
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == pdenter)
{
TextDrawShowForPlayer(playerid, Textdraw0);
}
}