command doesn't exist
#1

I did add this to my gamemode
When I type /flip it says the command doesn't exist
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

  if(strcmp(cmdtext, "/flip", true) == 0)
  {
  if(IsPlayerInAnyVehicle(playerid))
  {
    new currentveh;
    new Float:angle;
    currentveh = GetPlayerVehicleID(playerid);
    GetVehicleZAngle(currentveh, angle);
    SetVehicleZAngle(currentveh, angle);
    SendClientMessage(playerid, 0xFFFFFFFF, "AdrenalineBot: Your vehicle has been flipped.");
    return 1;
  }
  else
  {
    SendClientMessage(playerid, 0xFFFFFFFF, "AdrenalineBot: You are not in any vehicle!");
    return 1;
  }
  }
   return 0;
}
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: 2 Guest(s)