SA-MP Forums Archive
[Help] Teleports - 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)
+--- Thread: [Help] Teleports (/showthread.php?tid=415957)



[Help] Teleports - Sliceofdeath - 15.02.2013

Can someone please tell me how to make teleports with video/pic ?

P.S : Don't say , use ******/*******.

Thankz in advance

Sorry i am newbie



Re: [Help] Teleports - bensmart469 - 15.02.2013

Well, first of all, go in game on a local server, then /save where you want the teleport to be. It should look something like this:
PHP код:
AddPlayerClass(116,207.5703,-111.0274,1005.1328,351.5634,0,0,0,0,0,0); // 
Now, copy the x, y, and z co ordinates (in this, 207.5703,-111.0274,1005.132. Then, make your command for teleporting e.g. /lsa, then add:
PHP код:
SetPlayerPos(playerid,X_POSITION_HERE,X_POSITION_HERE,Z_POSITION_HERE); 
If you are using zcmd, it should look like this:
PHP код:
CMD:lsa(playerid,params[])
{
     
SetPlayerPos(playerid,207.5703,-111.0274,1005.1328);
     return 
1;

PS: sorry about no pic/video


Re: [Help] Teleports - Sliceofdeath - 15.02.2013

Quote:
Originally Posted by bensmart469
Посмотреть сообщение
Well, first of all, go in game on a local server, then /save where you want the teleport to be. It should look something like this:
PHP код:
AddPlayerClass(116,207.5703,-111.0274,1005.1328,351.5634,0,0,0,0,0,0); // 
Now, copy the x, y, and z co ordinates (in this, 207.5703,-111.0274,1005.132. Then, make your command for teleporting e.g. /lsa, then add:
PHP код:
SetPlayerPos(playerid,X_POSITION_HERE,X_POSITION_HERE,Z_POSITION_HERE); 
If you are using zcmd, it should look like this:
PHP код:
CMD:lsa(playerid,params[])
{
     
SetPlayerPos(playerid,207.5703,-111.0274,1005.1328);
     return 
1;

PS: sorry about no pic/video
When i make CMD : pier .... [etc]
It give 1 warning + Cmd don't work In-Game


Re: [Help] Teleports - dusk - 15.02.2013

Do you have ZCMD include?