Need help with pickups and GameTextForPlayer
#1

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.
Reply
#2

Steve you need to make a text draw for it.
Reply
#3

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.
Reply
#4

up!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)