18.10.2011, 10:18
pawn Код:
if(!strcmp(cmdtext, "/test", true)){
if(!IsPlayerInAnyVehicle(playerid)){
SetPlayerPos(playerid, 1505.6221, 769.2800, 7.1853);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, 0);
}
else{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1505.6221, 769.2800, 7.1853);
SetVehicleZAngle(veh, 0.0);
LinkVehicleToInterior(veh, 1);
SetVehicleVirtualWorld(veh, 0);
PutPlayerInVehicle(playerid, veh, 0);
}
return 1;
}
[pawn]
pawn Код:
if(!strcmp(cmdtext, "/test", true)){
SetPlayerPos(playerid, 1505.6221, 769.2800, 7.1853);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}