08.05.2010, 09:14
i made a code to flip a car when pressing mmb but for some reason it isnt working;
can someone please help?
Код:
if(newkeys == KEY_LOOK_BEHIND) { if(IsPlayerInAnyVehicle(playerid)) { { new Float:PX, Float:PY, Float:PZ, Float:PA; GetPlayerPos(playerid, PX, PY, PZ); GetVehicleZAngle(GetPlayerVehicleID(playerid), PA); SetVehiclePos(GetPlayerVehicleID(playerid), PX, PY, PZ+1); SetVehicleZAngle(GetPlayerVehicleID(playerid), PA); SendClientMessage(playerid, COLOR_GREEN,"Vehicle Fliped!"); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } } }