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


Messages In This Thread
Need help with pickups and GameTextForPlayer - by Steve1312 - 29.08.2013, 21:19
Re: Need help with pickups and GameTextForPlayer - by FalloutG - 29.08.2013, 21:25
Re: Need help with pickups and GameTextForPlayer - by Steve1312 - 29.08.2013, 21:33
Re: Need help with pickups and GameTextForPlayer - by Steve1312 - 30.08.2013, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)