Weapon drop problem..Please help.
#7

Try doing this then!
pawn Код:
new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    new weaponID[13], weaponammo[13], rpos[4];
    rpos[0] = random(11),rpos[1] = random(11),rpos[2] = random(2),rpos[3] = random(2);
    for(new i = 0; i < 13; i++)
    {
        if(rpos[3] == 0 && rpos[2] == 0)
        {
            GetPlayerWeaponData(playerid, i, weaponID[i], weaponammo[i]);
            DropWeapons(weaponID[i], weaponammo[i], X + rpos[0], Y + rpos[1], Z, GetPlayerVirtualWorld(playerid), playerid);
        }
        if(rpos[3] == 0 && rpos[2] == 1)
        {
            GetPlayerWeaponData(playerid, i, weaponID[i], weaponammo[i]);
            DropWeapons(weaponID[i], weaponammo[i], X - rpos[0], Y + rpos[1], Z, GetPlayerVirtualWorld(playerid), playerid);
        }
        if(rpos[3] == 1 && rpos[2] == 0)
        {
            GetPlayerWeaponData(playerid, i, weaponID[i], weaponammo[i]);
            DropWeapons(weaponID[i], weaponammo[i], X + rpos[0], Y - rpos[1], Z, GetPlayerVirtualWorld(playerid), playerid);
        }
        if(rpos[3] == 1 && rpos[2] == 1)
        {
            GetPlayerWeaponData(playerid, i, weaponID[i], weaponammo[i]);
            DropWeapons(weaponID[i], weaponammo[i], X - rpos[0], Y - rpos[1], Z, GetPlayerVirtualWorld(playerid), playerid);
        }
    }
Reply


Messages In This Thread
Weapon drop problem..Please help.(updated codes) help! - by Mikkel_RE - 27.11.2012, 23:10
Re: Weapon drop problem..Please help. - by PlayLSX_Founder - 28.11.2012, 01:54
Re: Weapon drop problem..Please help. - by Ballu Miaa - 28.11.2012, 05:05
Re: Weapon drop problem..Please help. - by Mikkel_RE - 28.11.2012, 08:22
Re: Weapon drop problem..Please help. - by Ballu Miaa - 28.11.2012, 10:12
Re: Weapon drop problem..Please help. - by Mikkel_RE - 28.11.2012, 10:32
Re: Weapon drop problem..Please help. - by Ballu Miaa - 28.11.2012, 10:48
Re: Weapon drop problem..Please help. - by Mikkel_RE - 28.11.2012, 10:55
Re: Weapon drop problem..Please help. - by Ballu Miaa - 28.11.2012, 10:57
Re: Weapon drop problem..Please help. - by Mikkel_RE - 28.11.2012, 11:04

Forum Jump:


Users browsing this thread: 2 Guest(s)