Can't pickup weapons if you don't already have them
#1

Hey I'm using the sftdm GM. I noticed that when a player dies and leaves weapons behind, I can pick them up as long as I already have them... but if they are weapons I don't have, I can't pick them up. Any idea how I can fix this? I want to be able to walk into a weapon I don't already have, hit crouch and change to that weapon.

For example: If I have a combat shotgun... and somebody drops sawns, I want to walk into the sawn, crouch and change from combat shotgun to sawns.
Reply
#2

Can you find and show the part of the script where you pick up the items that were dropped?
Reply
#3

Well, its not that hard. you must use the following commands.

If you post your drop weapons system i could add.


pawn Код:
new bool: NAMEOFYOURBOOL[MAX_PLAYERS];

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_CROUCH)
    {
     
    }
}
Reply
#4

I'm not sure but I've attached my entire GM below...
Reply
#5

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
Well, its not that hard. you must use the following commands.

If you post your drop weapons system i could add.


pawn Код:
new bool: NAMEOFYOURBOOL[MAX_PLAYERS];

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_CROUCH)
    {
     
    }
}
Are you posting random irrelevant code for a reason, or are you just bored?
Reply
#6

Anybody?
Reply
#7

If I remember right, pressing TAB does that.
Reply
#8

You're correct. Thanks for the info... but is there a way to change it from TAB to crouch? I don't really wanna open the scoreboard when I pick up a new weapon.
Reply
#9

If anybody could tell me how to change the key from TAB to crouch, that would be great.
Reply
#10

Hello?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)