25.02.2010, 22:13
pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
new Float:X, Float:Y, Float:Z;
if(IsPlayerInAnyVehicle(playerid))
SetCameraBehindPlayer(playerid);
GetPlayerPos(playerid, X, Y, Z);
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
return 1;
}
pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
new Float:X, Float:Y, Float:Z;
if(IsPlayerInAnyVehicle(playerid)){
SetCameraBehindPlayer(playerid);
GetPlayerPos(playerid, X, Y, Z);
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
}
return 1;
}