command doesn't exist
#3

So long why ?!
pawn Код:
if(strcmp(cmdtext,"/flip",true)==0)
    {
      if(PlayerInfo[playerid][power]>5)
         {
     new Float:X,Float:Y,Float:Z,Float:Angle;
     if (IsPlayerInAnyVehicle(playerid)){ GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z + 1); SetVehicleZAngle(GetPlayerVehicleID(playerid),Angle); SendClientMessage(playerid,COLOR_YELLOW,"You have successfully flipped your vehicle.");
          }
      else SendClientMessage(playerid,COLOR_RED,"You must be in a vehicle.");
      }
     return 1;
     }
Works 100 %
Reply


Messages In This Thread
command doesn't exist - by JEkvall95 - 28.09.2012, 05:06
Re: command doesn't exist - by JEkvall95 - 28.09.2012, 05:09
Re: command doesn't exist - by BlueGames - 29.09.2012, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)