30.11.2012, 15:01
i need little help if when player teleport anywhere player having car but when i teleported my car is destroyed
how to add this cmd teleport
how to add this cmd teleport
dcmd_lselevator(playerid,params[]) { #pragma unused params new elevator = random(sizeof(Elevator)); SetPlayerPos(playerid,Elevator[elevator][0],Elevator[elevator][1],Elevator[elevator][2]+0.40); SetPlayerFacingAngle(playerid,Elevator[elevator][3]); GameTextForPlayer(playerid,"~b~Elevator ~r~Lift!",5000,3); return 1; } |
dcmd_tele(playerid,params[])
{
#pragma unused params
new elevator = random(sizeof(Elevator));
SetPlayerPos(playerid,Elevator[elevator][0],Elevator[elevator][1],Elevator[elevator][2]+0.40);
SetPlayerFacingAngle(playerid,Elevator[elevator][3]);
if(IsPlayerInVehicle(playerid, vehicleid))
{
SetVehiclePos(Elevator[elevator][0],Elevator[elevator][1],Elevator[elevator][2]+0.40);
}
GameTextForPlayer(playerid,"~b~Elevator ~r~Lift!",5000,3);
return 1;
}