Need help with pickups and GameTextForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with pickups and GameTextForPlayer (
/showthread.php?tid=460774)
Need help with pickups and GameTextForPlayer -
Steve1312 - 29.08.2013
Hello again I have made An entrance and exit from entrance with sprint key , but i want players to show text when they get on a pickup so they know how to get in lol
Here is the code what i made to show text
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup1)
{
GameTextForPlayer(playerid, "~w~SPIED ~r~SPACE", 5000, 5);
return 1;
}
if(pickupid == pickup2)
{
GameTextForPlayer(playerid, "~w~SPIED ~r~SPACE", 5000, 5);
return 1;
}
return 1;
}
pickup1 is the entrance but pickup2 exit.But i don't know why its not working. And i have defined pickup1 and 2 to my createdynamicpickup.
P.S sorry for bad grammar.
Re: Need help with pickups and GameTextForPlayer -
FalloutG - 29.08.2013
Steve you need to make a text draw for it.
Re: Need help with pickups and GameTextForPlayer -
Steve1312 - 29.08.2013
i tryd that to but it swhowed only when i presed space key lol

i somebody can tell me how to set textdraw when someone gets on pickup i will apreciate that.
Re: Need help with pickups and GameTextForPlayer -
Steve1312 - 30.08.2013
up!!!!