Author Topic: !flip command need to fix  (Read 2926 times)

0 Members and 1 Guest are viewing this topic.

Offline johnx

  • Street Thug
  • *
  • Posts: 25
    • View Profile
!flip command need to fix
« on: January 07, 2011, 04:18:50 pm »
i making !flip command i try so much but it is not working can any one here who is good in pawno so plz fix it for the players and for me

Quote
else if (strcmp(cmd, "!flip", true) == 0) {
new Float:x, Float:y, Float:z;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SendClientMessage(playerid, COLOR_GREEN, "Vehicle Flipped!");
return 1;
}

Offline shivambansal

  • Wiseguy
  • **
  • Posts: 52
  • VC:MP Beta Tester
    • View Profile
Re: !flip command need to fix
« Reply #1 on: January 14, 2011, 08:05:37 pm »
same problem.

Offline aXXo

  • Wiseguy
  • **
  • Posts: 50
    • View Profile
Re: !flip command need to fix
« Reply #2 on: January 15, 2011, 12:31:22 am »
You need to specify the vehicle angle in
SetVehiclePos(vehicleid, Float:X,Float:Y,Float:Z,Float:FacingAngle)

Offline johnx

  • Street Thug
  • *
  • Posts: 25
    • View Profile
Re: !flip command need to fix
« Reply #3 on: January 15, 2011, 08:31:44 am »
can u write the codes in script plz
or give me full code for flip command