[Help] Subcommands
#4

pawn Код:
if(!strcmp(cmd, "/buyvehicle", true)) // By Ellis
    {
      new x_nr[256];
        x_nr = strtok(cmdtext, idx);
        if(!strlen(x_nr))
        {
          SendClientMessage(playerid, COLOR_WHITE, "HINT: /buyvehicle [name]");
          SendClientMessage(playerid, COLOR_WHITE, "Available vehicles: bmx (20000$), buffalo (500000$)");
          return 1;
        }
        new vehicle=strval(x_nr);
      if(strcmp(vehicle,"bmx",true) == 0)
            {
            SendClientMessage(playerid, COLOR_WHITE, "BMX");
            }
      else if(strcmp(vehicle,"buffalo",true) == 0)
            {
            SendClientMessage(playerid, COLOR_WHITE, "buffalo");
            }
        else
            {
              SendClientMessage(playerid, COLOR_WHITE, "HINT: /buyvehicle [name]");
            SendClientMessage(playerid, COLOR_WHITE, "Available vehicles: bmx (20000$), buffalo (500000$)");
            }
      return 1;
    }
[/quote]
Reply


Messages In This Thread
[Help] Subcommands - by Ivan_Pantovic - 25.04.2010, 21:07
Re: [Help] Subcommands - by aircombat - 25.04.2010, 21:34
Re: [Help] Subcommands - by Ivan_Pantovic - 25.04.2010, 22:05
Re: [Help] Subcommands - by CAR - 26.04.2010, 07:04
Re: [Help] Subcommands - by Ivan_Pantovic - 26.04.2010, 07:39

Forum Jump:


Users browsing this thread: 1 Guest(s)