[SOLVED] Onplayerpickuppickup
#1

I am trying to make a pickup that teleports me somewhere.
I want it to be the pickup id 1273 that takes me there.
at the top of my gamemode i have

new Home;

next to my staticpickups( weapons) i have

Home = CreatePickup(1273, 2, 1300.7528,-795.9010,1084.007;

at the bottom of my gamemode i have

public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Home)
{
SetPlayerPos(playerid,1299.7760,-791.3349,1084.007;
}
return 1;
}


It compiles, however when i stand over the pickup it has no effect and just dissappears.

Any help would be appreciated.
Reply


Messages In This Thread
[SOLVED] Onplayerpickuppickup - by cozza123456 - 14.08.2009, 11:59
Re: [UNSOLVED] Onplayerpickuppickup - by Dj_maryo1993 - 14.08.2009, 12:38
Re: [UNSOLVED] Onplayerpickuppickup - by saiberfun - 14.08.2009, 12:58
Re: [UNSOLVED] Onplayerpickuppickup - by cozza123456 - 14.08.2009, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)