11.02.2010, 18:02
Need the /flip cmd , what function do i use for this ?
/flip = it turnes you back on weel if you are upside-down
/flip = it turnes you back on weel if you are upside-down
public OnPlayerCommandText(playerid,cmdtext)
{
if(strcmp(/flip,cmdtext,true) == 0)
{
new Float:X, Float:Y, Float:Z;
new vehicleid = GetPlaverVehicleID(playerid);
GetVehiclePos(vehicleid,X,Y,Z);
SetVehiclePos(vehicleid,X,Y,Z);
SendClientMessage(playerid, /*insert colour here*/, "You have flipped your vehicle");
return 1;
}
return 1;
}