02.12.2010, 15:50
Heyo!
I've made this command:
Which teleports the player and his vehicle 1000 feet into the air.
Does anyone know how i can improve this, so you can select the height, example:
Thanks
I've made this command:
Which teleports the player and his vehicle 1000 feet into the air.
pawn Код:
if(strcmp("/vdive",cmdtext,true) == 0)
{
new Float:X,Float:Y,Float:Z;
new getv = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z+1000);
SetVehiclePos(getv,X,Y,Z+1000);
PutPlayerInVehicle(playerid,getv,0);
return 1;
}
pawn Код:
Usage: /vdive <Height>