03.12.2012, 16:34
pawn Код:
CMD:lva(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),1328.6962,1278.2703,10.4794);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 359.9094);
SetCameraBehindPlayer(playerid);
}
else
{
SendClientMessage(playerid,0xFFFF00AA, "ERROR: You need to be the driver!");
}
}
else
{
SetPlayerPos(playerid, 1321.3663,1271.5416,10.9766);
SetPlayerFacingAngle(playerid, 359.6142);
SetCameraBehindPlayer(playerid);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
}
return 1;