30.11.2012, 16:46
pawn Код:
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;
}