29.08.2013, 21:19
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
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.
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; }
P.S sorry for bad grammar.