FLIP Command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: FLIP Command (
/showthread.php?tid=376410)
FLIP Command -
Windrush - 10.09.2012
How To Make Flip Command Using ZCMD?
Re: FLIP Command -
detter - 10.09.2012
Explane lil bit more
Re: FLIP Command -
[HK]Ryder[AN] - 10.09.2012
Quote:
Originally Posted by detter
Explane lil bit more
|
He wants a flip command?what can he explain more..
OT - Here you go
pawn Код:
CMD:flip(playerid, params[])
{ if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"You must be in a vehicle.");
{
new vehicle;
new Float:zangle;
vehicle = GetPlayerVehicleID(playerid);
GetVehicleZAngle(vehicle,zangle);
SetVehicleZAngle(vehicle,zangle);
SendClientMessage(playerid,color,"Vehicle succesfully flipped.");
}
return 1;
}
gimme a rep?
Re: FLIP Command -
Djole1337 - 10.09.2012
pawn Код:
COMMAND:flip(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid))
{
new
currentveh,
Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, -1, "Your vehicle has been flipped.");
RepairVehicle(currentveh);
return true;
}
else
{
SendClientMessage(playerid, -1, "You Must Be Driving A Vehicle To Use This Command.");
return true;}
}
Re: FLIP Command -
antonio112 - 10.09.2012
pawn Код:
CMD:flip(playerid, params[])
{
#pragma unused params
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, -1, "You can use this command only in a vehicle.");
new Float: angle;
new vID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(vID, angle);
SetVehicleZAngle(vID, angle);
SendClientMessage(playerid, -1, "You flipped your car.");
return 1;
}
note that this is just a simple flip command, which works only if your vehicle is upside down.
Re: FLIP Command -
Windrush - 10.09.2012
Ok Tnx Guys Rep You All