SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/03/2015, 12:42 PM   #1
Sc0pion
Huge Clucker
 
Join Date: Dec 2014
Posts: 428
Reputation: 3
Default How to disable weapon pickup?

Fixed!

Last edited by Sc0pion; 14/03/2015 at 08:15 PM.
Sc0pion is offline   Reply With Quote
Old 05/03/2015, 12:43 PM   #2
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,830
Reputation: 114
Default Re: How to disable weapon pickup?

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.
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Old 05/03/2015, 01:28 PM   #3
Sc0pion
Huge Clucker
 
Join Date: Dec 2014
Posts: 428
Reputation: 3
Default Re: How to disable weapon pickup?

Fixed!

Last edited by Sc0pion; 14/03/2015 at 08:16 PM.
Sc0pion is offline   Reply With Quote
Old 05/03/2015, 01:29 PM   #4
Kaliber
High-roller
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 1,092
Reputation: 156
Default AW: How to disable weapon pickup?

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
__________________
Kaliber is offline   Reply With Quote
Old 05/03/2015, 01:31 PM   #5
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,830
Reputation: 114
Default Re: How to disable weapon pickup?

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);
        }
    }
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Old 05/03/2015, 01:34 PM   #6
Sc0pion
Huge Clucker
 
Join Date: Dec 2014
Posts: 428
Reputation: 3
Default Re: How to disable weapon pickup?

Fixed!

Last edited by Sc0pion; 14/03/2015 at 08:17 PM.
Sc0pion is offline   Reply With Quote
Old 05/03/2015, 01:36 PM   #7
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,830
Reputation: 114
Default Re: How to disable weapon pickup?

Oh okay, then just remove the bit Kaliber pointed out.
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Old 05/03/2015, 01:39 PM   #8
Sc0pion
Huge Clucker
 
Join Date: Dec 2014
Posts: 428
Reputation: 3
Default Re: How to disable weapon pickup?

Fixed!

Last edited by Sc0pion; 16/03/2015 at 06:31 PM.
Sc0pion is offline   Reply With Quote
Old 05/03/2015, 01:40 PM   #9
Kaliber
High-roller
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 1,092
Reputation: 156
Default AW: Re: How to disable weapon pickup?

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
__________________
Kaliber is offline   Reply With Quote
Old 05/03/2015, 01:46 PM   #10
Sc0pion
Huge Clucker
 
Join Date: Dec 2014
Posts: 428
Reputation: 3
Default Re: AW: Re: How to disable weapon pickup?

Fixed!

Last edited by Sc0pion; 16/03/2015 at 06:31 PM.
Sc0pion is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Weapon Data Rdx Scripting Help 8 29/06/2014 08:49 PM
Correct way to disable weapon damage CaveDweller Scripting Help 8 02/08/2013 10:19 PM
Help Disable & Enable Weapon kings24 Scripting Help 2 05/07/2012 10:27 AM
Disable weapon effect? Gooday Scripting Help 1 07/04/2012 06:27 PM
Disable Weapon Menu's ? RSC_Quicker Help Archive 0 02/05/2010 09:13 PM


All times are GMT. The time now is 11:38 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.