13.05.2013, 21:46
i have a flip cmd but its not that much of pro for example if the passenger does /flip it does flip so can you help me so it only flips if the driver does it?
here is the one i have now
here is the one i have now
pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
if(GetVehicleModel(currentveh) == 519 || GetVehicleModel(currentveh) == 520)
SendClientMessage(playerid, -1, "You cannot do this in an airplane");
}
new Float:angle;
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, COLOR_GREEN, "Your vehicle has been flipped.");
}
return 1;
}