flip car
#1

hello i've this command to flip vehicle, i want if i didnt put the player's id it will just flip my car i tryed isnull and if(!params[0]) etc, and didnt work

PHP код:
CMD:flip(playerid,params[])
{
  new 
TargetID, Float:angle;
  if(
pdata[playerid][Adminstator] < 2) return SendClientMessage(playerid,Red,"Command not found! Type /cmds");
  if(
sscanf(params, "u",TargetID)) return SendClientMessage(playerid,Red,"Flip vehicle: /flip <id>");
  if(!
IsPlayerConnected(TargetID)) return SendClientMessage(playerid,Red,"Player is not connected");
  {
    
GetVehicleZAngle(GetPlayerVehicleID(TargetID),angle);
    
SetVehicleZAngle(GetPlayerVehicleID(TargetID),angle);
  } 
Reply


Messages In This Thread
flip car - by BoU3A - 20.12.2014, 17:09
Re: flip car - by HY - 20.12.2014, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)