#6

Код:
 if(strcmp(cmd, "/sellgun", true) == 0) {
    GetPlayerPos(giveplayerid,px,py,pz);
    tmp = strtok(cmd, idx);
    if(!strlen(tmp)) {
      SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
      SendClientMessage(playerid, COLOR_WHITE, "*** Sell Guns ***");
      SendClientMessage(playerid, COLOR_GREY, "USAGE: /sellgun [id] [gun]");
      SendClientMessage(playerid, COLOR_GREY, "AVAILABLE GUNS**:mp5, m4, deagle, shotgun, ak47, 9mm");
      SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
      return 1;
    }
    if (IsPlayerConnected(giveplayerid))
        {
      if(giveplayerid != INVALID_PLAYER_ID) {
        x_info = strtok(cmd, idx);
        if(!strlen(x_info)) {
          SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
          SendClientMessage(playerid, COLOR_WHITE, "*** Sell Guns ***");
          SendClientMessage(playerid, COLOR_GREY, "USAGE: /sellgun [id] [gun]");
          SendClientMessage(playerid, COLOR_GREY, "AVAILABLE GUNS**:mp5, m4, deagle, shotgun, ak47, 9mm");
          SendClientMessage(playerid, COLOR_GREY, "ERROR: Wrong ID OR WRONG WEAPON NAME");
          SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
          return 1;
        }
      }
does this work?
Reply


Messages In This Thread
ID - by armyoftwo - 10.01.2010, 13:42
Re: ID - by BMUK - 10.01.2010, 14:29
Re: ID - by ғαιιοцт - 10.01.2010, 16:05
Re: ID - by armyoftwo - 11.01.2010, 13:00
Re: ID - by armyoftwo - 12.01.2010, 12:32
Re: ID - by ғαιιοцт - 12.01.2010, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)