teleport command help-OPEN FOR DETAIL PLS
#1

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
Reply
#2

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.
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)