[FilterScript] [FS] Flip the Vehicle! ( /FLIP Command )
#1


Flip the Vehicle!
/FLIP Command
Q: "What is the name of this filterscript?"
A: "Read above LOL!"

Q: "What this filterscript do?"
A: "This filterscript will make your gamemode, when there is a player type /flip, the car will be flipped into normal angle"

Q: "Then..."
A: "That's all!"

Q: "The code?"
A: "The code? Read it abo.... oh... sorry, here it is..."

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{

  if(strcmp(cmdtext, "/flip", true) == 0)
  {
  if(IsPlayerInAnyVehicle(playerid))
  {
    new currentveh;
    new Float:angle;
    currentveh = GetPlayerVehicleID(playerid);
    GetVehicleZAngle(currentveh, angle);
    SetVehicleZAngle(currentveh, angle);
    SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");
    return 1;
  }
  else
  {
    SendClientMessage(playerid, 0xFFFFFFFF, "You are not in any vehicle!");
    return 1;
  }
  }
   return 0;
}
Q: "How do i install it?"
A: "Simple! Just put the codes above into your gamemode!"

Q: "Can u repeat please, i didn't hear what you say..."
A: "READ IT LOL! I didn't SAY, but i WROTE. So READ IT!"

Q: "I can't read, can you help me?"
A: "I have no idea that there is a PAWNO scripter that cannot read -.-"

Q: "How can i compile my gamemode?"
A: "THIS IS NOT A TOPIC TO ASK FOR IT!!!"

Q: "Can i......."
A: "What ever you say, NO!"

Q: "But i want to say, can i give you $1000. Ok, you don't want it, so never mind..."
A: " :'( "

Sorry about that.... The Q is stupid and the A is high emotional

A: "I hope this Filterscript will be really usefull!"
Reply
#2

Easy.... , But Anyways Nice
Reply
#3

This isn't really a filterscript, there is "Useful commands" topic for commands.
Reply
#4

Quote:
Originally Posted by Don Correlli
This isn't really a filterscript, there is "Useful commands" topic for commands.
Indeed. You should ask to remove it and re-write it in Useful commands. As I can make it in 15 seconds right here.
Reply
#5

thnx man
Reply
#6

hello,
can you make this,
flip the car when you press H??
i make a new stunt server with my friend.

thats nice when you can this make.

[SRY for my bad english, Iam german]
Reply
#7

Quote:
Originally Posted by NewErA1996
View Post
hello,
can you make this,
flip the car when you press H??
i make a new stunt server with my friend.

thats nice when you can this make.

[SRY for my bad english, Iam german]
....... ( 2months bump )

pawn Code:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
    if ( IsPlayerInAnyVehicle( playerid ) )
    {
        if ( newkeys == KEY_CROUCH )
        {
            new Float: zAng;
            GetVehicleZAngle( GetPlayerVehicleID( playerid ), zAng );
            SetVehicleZAngle( GetPlayerVehicleID( playerid ), zAng );
            GameTextForPlayer( playerid, "~r~Vehicle Flipped!", 3000, 3 );
        }
    }
    return 1;
}
Reply
#8

Nice mate.keep it up
Reply
#9

MORE THAN 2 MONTHS!

04/10/2009, 08:04 PM

You guys are kidding me to say good work or keep it up at this time.

HELLO ITS 2011.
Reply
#10

I always like to elevate (Z axis + 1) the vehicle a bit when flipping (so when you're on a hill and you flip your vehicle it won't get jammed in the hill), maybe in V2?

Good job though, easy as it may be.
Reply
#11

well if you using LUXADMIN so change the command flip like flipmycar etc as your wish because flip command is only for admin when you using luxadmin
Reply
#12

sry

where i must put the script`?
Reply
#13

Just put this under onplayercommand after {(bracket) in you gm
Code:
 if(strcmp(cmdtext, "/flip", true) == 0)
  {
  if(IsPlayerInAnyVehicle(playerid))
  {
    new currentveh;
    new Float:angle;
    currentveh = GetPlayerVehicleID(playerid);
    GetVehicleZAngle(currentveh, angle);
    SetVehicleZAngle(currentveh, angle);
    SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");
    return 1;
  }
  else
  {
    SendClientMessage(playerid, 0xFFFFFFFF, "You are not in any vehicle!");
    return 1;
  }
  }
Reply
#14

Nice but easy.
Reply
#15

Very helpful!
Reply
#16

Too easy but nice..
Reply
#17

why not try auto flip when the car upside down?
Reply
#18

Easier way for ZCMD Users.

Code:
cmd(flip, playerid, params[])
{
    new vid = GetPlayerVehicleID(playerid);
    new Float:angle;
    GetVehicleZAngle(vid, angle);
    SetVehicleZAngle(vid, angle);
    return 1;
}
Reply
#19

nice....but in PPC...is a normal command. So...easy
Reply
#20

How do automatically on the wheels?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)