10.09.2012, 09:10
How To Make Flip Command Using ZCMD?
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;
}
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;}
}
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;
}