Command bug (/weapons)
#2

Try that.

pawn Код:
dcmd_weapons(playerid, params[])
{
    #pragma unused params
    if(gTeam[playerid] == TEAM_WEAPON_DEALER) return SendClientMessage(playerid, COLOR_ERROR, "You is an bistro, You cant call for other weapon dealers");
    else if(HasRequestedWeaponDealer[playerid] == 1) return SendClientMessage(playerid, COLOR_ERROR, "You have already requested a weapon dealer, please sit down and wait");
    else
    {
        SendClientMessage(playerid, COLOR_GREEN, "You have requested a weapon dealer"); //Message to the player who have requesed weapon dealer
        WeaponList(playerid);
        HasRequestedWeaponDealer[playerid] = 1;

        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(gTeam[i] == TEAM_WEAPON_DEALER)
            {
                new string[128];
                format(string, sizeof(string), "%s(%d) has requested a weapon dealer in %s", PlayerName(playerid), i, GetPlayerZone(i)); //Send the message to online Weapon Dealers
                SendClientMessage(i, COLOR_GREEN, string);
                ServerLog(string);
                return 1;
            }
        }
        return 1;
    }
}
Reply


Messages In This Thread
Command bug (/weapons) - by Unknown123 - 11.03.2011, 20:16
Re: Command bug (/weapons) - by willsuckformoney - 11.03.2011, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)