Advertisement
Guest User

Untitled

a guest
May 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. if (strcmp(cmdtext, "/flip", true)==0)
  2. {
  3. if(IsPlayerInAnyVehicle(playerid))
  4. {
  5. new Float:PX, Float:PY, Float:PZ, Float:PA;
  6. GetPlayerPos(playerid, PX, PY, PZ);
  7. GetVehicleZAngle(GetPlayerVehicleID(playerid), PA);
  8. SetVehiclePos(GetPlayerVehicleID(playerid), PX, PY, PZ+1);
  9. SetVehicleZAngle(GetPlayerVehicleID(playerid), PA);
  10. SendClientMessage(playerid, COLOR_BASIC,"Vehicle Fliped!");
  11. PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
  12. }
  13. else
  14. {
  15. SendClientMessage(playerid, COLOR_RED,"You can't flip your player.");
  16. }
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement