/changecolor command
#1

pawn Код:
dcmd(changecolor, 11, cmdtext);

pawn Код:
dcmd_changecolor(playerid,params[])
{
  if(admin[playerid] <= 3) return 0;
  new color1,color2,vehicleid = GetPlayerVehicleID(playerid);
  if(sscanf(params,"hh",color1,color2)) return SendClientMessage(playerid, 0xF60000AA, "USAGE: /changecolor [color 1][color 2]");
    {
      if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
      ChangeVehicleColor(vehicleid, color1, color2);
      SendClientMessage(playerid, 0xFFFFFFFF, "Color changed");
      return 1;
    }
}

I get no errors. The problem is that I get Unknown Command when I try it.
Reply


Messages In This Thread
/changecolor command - by Dolph - 23.04.2010, 17:01
Re: /changecolor command - by security - 23.04.2010, 20:39
Re: /changecolor command - by Torran - 23.04.2010, 20:44
Re: /changecolor command - by Dolph - 23.04.2010, 20:54
Re: /changecolor command - by Torran - 23.04.2010, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)