teleport command help-OPEN FOR DETAIL PLS - 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: teleport command help-OPEN FOR DETAIL PLS (
/showthread.php?tid=595017)
teleport command help-OPEN FOR DETAIL PLS -
naveen - 27.11.2015
guys i need to teleport to a specific interior with the life only 10 perent for life should be there for one shot kill event
how to write code for that can any help
+rep if helped
Re: teleport command help-OPEN FOR DETAIL PLS -
oliverrud - 27.11.2015
Well first step would be finding out what the interior id is and then the position of the place you wanna go. Then you use the setplayerposition function which can be found documented on the wiki, and then you set the players health to 10 I suppose.
Re: teleport command help-OPEN FOR DETAIL PLS -
CrazyChoco - 27.11.2015
pawn Код:
SetPlayerPos(playerid, x, y, z); //Change this.
SetPlayerVirtualWorld(playerid, worldid); //Change it do default: 0
SetPlayerInterior(playerid, interior); //Change this.
SetPlayerHealth(playerid, 10); //Set health to 10.
Re: teleport command help-OPEN FOR DETAIL PLS -
naveen - 03.12.2015
Quote:
Originally Posted by CrazyChoco
pawn Код:
SetPlayerPos(playerid, x, y, z); //Change this. SetPlayerVirtualWorld(playerid, worldid); //Change it do default: 0 SetPlayerInterior(playerid, interior); //Change this. SetPlayerHealth(playerid, 10); //Set health to 10.
|
thanks a lot bro +repped