How to disable weapon pickup?
#1

Fixed!
Reply
#2

Well it's scripted in your script then, it's not a SAMP function by default, you'll have to find the script that does this, and delete it.
You should be able to find it's code in OnPlayerDeath.
Reply
#3

Fixed!
Reply
#4

Quote:

for(new w; w<13; w++)
{
GetPlayerWeaponData(playerid, w, _w, _a);
CreateAutoPickup(
( pX + random( 5 ) ),
pY,
pZ,
_w,
_a,
3,
GetPlayerInterior(playerid),
GetPlayerVirtualWorld(playerid));
}

this one
Reply
#5

And the switch aswell.
pawn Code:
if(GetPlayerWantedLevel(playerid) > 1)
    {
            switch( random(5) )
        {
            case 0: CreateAutoPickup(
                        ( pX + random( 5 ) ),
                        pY,
                        pZ,
                        PICKUP_MODEL_HEALTH,
                        100,
                        3,
                        GetPlayerInterior(playerid),
                        GetPlayerVirtualWorld(playerid),
                        10000);
            case 1: CreateAutoPickup(
                        ( pX + random( 5 ) ),
                        pY,
                        pZ,
                        PICKUP_MODEL_ARMOR,
                        100,
                        3,
                        GetPlayerInterior(playerid),
                        GetPlayerVirtualWorld(playerid),
                        10000);
            case 2: CreateAutoPickup(
                        ( pX + random( 5 ) ),
                        pY,
                        pZ,
                        PICKUP_MODEL_CASH,
                        103 + random( 1000 ),
                        3,
                        GetPlayerInterior(playerid),
                        GetPlayerVirtualWorld(playerid),
                        10000);
            case 3: CreateAutoPickup(
                        ( pX + random( 5 ) ),
                        pY,
                        pZ,
                        PICKUP_MODEL_PARACHUTE,
                        1,
                        3,
                        GetPlayerInterior(playerid),
                        GetPlayerVirtualWorld(playerid),
                        10000);
            case 4: CreateAutoPickup(
                        ( pX + random( 5 ) ),
                        pY,
                        pZ,
                        PICKUP_MODEL_JETPACK,
                        1,
                        3,
                        GetPlayerInterior(playerid),
                        GetPlayerVirtualWorld(playerid),
                        10000);
        }
    }
Reply
#6

Fixed!
Reply
#7

Oh okay, then just remove the bit Kaliber pointed out.
Reply
#8

Fixed!
Reply
#9

Quote:
Originally Posted by Sc0pion
View Post
When I remove only that this is what I receive

Code:
D:\Servers\San Andreas - Gang War\gamemodes\SA-GW.pwn(3737) : warning 203: symbol is never used: "_a"
D:\Servers\San Andreas - Gang War\gamemodes\SA-GW.pwn(3737) : warning 203: symbol is never used: "_w"
Look at this line:

Code:
new _w, _a, Float:pX, Float:pY, Float:pZ;
write it to this:

Code:
new Float:pX, Float:pY, Float:pZ;
Greekz
Reply
#10

Fixed!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)