car flip
#1

can someone tell me how to make a little script to let a car flip?
Reply
#2

search there are alot of topics about that,, (yes the search button is temporrary down, but please.. go on ****** and type in car flip forum.sa-mp.com or somthing.. )
Reply
#3

pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
  new vehicleid = GetPlayerVehicleID(playerid);
  new Float:x, Float:y, Float:z;
  GetVehiclePos(vehicleid, x, y, z);
  SetVehiclePos(vehicleid, x, y, z);
}
You can use this code if your car goes on roof, it will flip it back to normal.
Reply
#4

Quote:
Originally Posted by Don Correlli
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
  new vehicleid = GetPlayerVehicleID(playerid);
  new Float:x, Float:y, Float:z;
  GetVehiclePos(vehicleid, x, y, z);
  SetVehiclePos(vehicleid, x, y, z);
}
You can use this code if your car goes on roof, it will flip it back to normal.
where i need to put it??
gamemodeinit?
Reply
#5

you just wanted a little script so Don_Corelli gave it to you... it should be put in a command not ongamemodeinit ... so like
pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
  //the code here
  return 1;
}
under OnPlayerCommandText
Reply
#6

is imt possible that when you press CTRL you flip? cuz i saw that on other servers.
Reply
#7

wiki is your friend man
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply
#8

I suggest you to learn through a guide. Asking this won't help and you'll just work as a machine. Learning is useful than this..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)