Where should I put this in my script?
#1

Where should I put this in my script?

Quote:

if(PlayerToPoint(playerid,X,Y,Z))
{
SetPlayerPost(playerid,X,Y,Z);
}

So,if the player is at the first point he will me tped to the second point without typing any command or picking up any pickup.
Thank you
Reply
#2

Great a pickup & add that to OnPlayerPickupPickup

https://sampwiki.blast.hk/wiki/Pickups
Reply
#3

Quote:
Originally Posted by Abernethy
Great a pickup & add that to OnPlayerPickupPickup

https://sampwiki.blast.hk/wiki/Pickups
You meant Create a pickup?
Reply
#4

It all depends on when you want the script to execute it.
Reply
#5

I think it would be good to put it in public OnPlayerUpdate... Am I right?
Reply
#6

Quote:
Originally Posted by Justas [SiJ
]
I think it would be good to put it in public OnPlayerUpdate... Am I right?
I suppose that would be good, unless he only wants it to happen at certain times.
Reply


Forum Jump:


Users browsing this thread: