13.07.2013, 14:26
Hello Guys , I want to show you how to make Simple Flip Command
Thats it Thanks
Code:
if (strcmp("/flip", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new currentveh; new Float:angle; currentveh = GetPlayerVehicleID(playerid); GetVehicleZAngle(currentveh, angle); SetVehicleZAngle(currentveh, angle); SendClientMessage(playerid, 0x99FFFFAA, "Your vehicle has been flipped."); return 1; } else { SendClientMessage(playerid, 0xAA3333AA, "You are not in any vehicle!"); return 1; } } return 0; }