[FS] Flip the Vehicle! ( /FLIP Command ) -
virspector - 04.10.2009
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!"
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Imran.Abbas - 04.10.2009
Easy.... , But Anyways Nice
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Correlli - 04.10.2009
This isn't really a filterscript, there is "Useful commands" topic for commands.
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
MenaceX^ - 04.10.2009
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.
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
misho1 - 24.04.2011
thnx man
AW: [FS] Flip the Vehicle! ( /FLIP Command ) -
NewErA1996 - 16.06.2011
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]
Re: AW: [FS] Flip the Vehicle! ( /FLIP Command ) -
Basicz - 16.06.2011
Quote:
Originally Posted by NewErA1996
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;
}
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
jot16 - 16.06.2011
Nice mate.keep it up
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Lorenc_ - 17.06.2011
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.
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Sinner - 17.06.2011
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.
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
MA_proking - 17.06.2011
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
AW: [FS] Flip the Vehicle! ( /FLIP Command ) -
NewErA1996 - 17.06.2011
sry
where i must put the script`?
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
MA_proking - 17.06.2011
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;
}
}
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
bartje01 - 17.06.2011
Nice but easy.
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
biggiephil234 - 21.04.2013
Very helpful!
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Can4ns - 21.04.2013
Too easy but nice..
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
ahmad95 - 22.04.2013
why not try auto flip when the car upside down?
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Th3UnKnOwN - 28.08.2014
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;
}
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
OvY2611 - 28.08.2014
nice....but in PPC...is a normal command. So...easy
Re: [FS] Flip the Vehicle! ( /FLIP Command ) -
Dimasi - 29.10.2014
How do automatically on the wheels?