Weapon Giving problem.
#3

i did something for u (Y) try it, if u dont like it i can always redo it, it draft it from my /afrisk and tried to make it understand for you, Hope u like it ,

pawn Код:
//under the stock u have above
    for(new i=0; i<13; i++)
    {
        GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
        if(weapons[i][0] != Player[playerid][weapon][i] && weapons[i][1] != 0)
        {
            format(string, sizeof(string), " %s (Ammo: %d) (Hacked)", RWN(weapons[i][0]), weapons[i][1]);
            SendClientMessage(playerid, green, string);
            weaps++;
        }
        else if(weapons[i][0] == Player[playerid][weapon][i] && weapons[i][0] != 0)
        {
            format(string, sizeof(string), " %s (Ammo: %d)", RWN(Player[playerid][weapon][i]), weapons[i][1]);
            SendClientMessage(playerid, green, string);
            weaps++;
        }
     }
//put it somewhere        
stock RWN(weaponid)
{
    new name[32];
    GetWeaponName(weaponid, name, sizeof(name));
    if(weaponid == 0) format(name, sizeof(name), "None");
    return name;
}
Reply


Messages In This Thread
Weapon Giving problem. - by iGetty - 16.11.2012, 23:07
Re: Weapon Giving problem. - by iGetty - 19.11.2012, 14:51
Re: Weapon Giving problem. - by Glad2BeHere - 19.11.2012, 16:00
Re: Weapon Giving problem. - by iGetty - 19.11.2012, 16:01
Re: Weapon Giving problem. - by Eric - 19.11.2012, 16:05
Re: Weapon Giving problem. - by iGetty - 19.11.2012, 16:06
Re: Weapon Giving problem. - by Glad2BeHere - 19.11.2012, 16:12
Re: Weapon Giving problem. - by iGetty - 19.11.2012, 16:30
Re: Weapon Giving problem. - by Glad2BeHere - 19.11.2012, 16:32
Re: Weapon Giving problem. - by Ballu Miaa - 19.11.2012, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)