Where should I put this in my script? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Where should I put this in my script? (
/showthread.php?tid=82421)
Where should I put this in my script? -
FreeSoul - 18.06.2009
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
Re: Where should I put this in my script? -
Abernethy - 18.06.2009
Great a pickup & add that to OnPlayerPickupPickup
https://sampwiki.blast.hk/wiki/Pickups
Re: Where should I put this in my script? -
SiJ - 18.06.2009
Quote:
Originally Posted by Abernethy
|
You meant
Create a pickup?
Re: Where should I put this in my script? -
Grim_ - 18.06.2009
It all depends on when you want the script to execute it.
Re: Where should I put this in my script? -
SiJ - 18.06.2009
I think it would be good to put it in public OnPlayerUpdate... Am I right?
Re: Where should I put this in my script? -
Grim_ - 18.06.2009
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.