14.08.2009, 10:10
I am trying to make it so that when a player walks on the pickup, it will teleport them to the inside of a building.
Heres What i am doing.
new Home;
public OnPlayerPickUpPickup(playerid,pickupid)
{
if (pickupid == Home)
{
SetPlayerPos(playerid,1299.7760,-791.3349,1084.007;
}
}
It compiles but when i test it, it doesn't teleport me anywhere. What have i done wrong that has made it so when you stand on it it just disappears.
Any help is appreciated.
Heres What i am doing.
new Home;
public OnPlayerPickUpPickup(playerid,pickupid)
{
if (pickupid == Home)
{
SetPlayerPos(playerid,1299.7760,-791.3349,1084.007;
}
}
It compiles but when i test it, it doesn't teleport me anywhere. What have i done wrong that has made it so when you stand on it it just disappears.
Any help is appreciated.