Guns from nowhere
#1

Hello,

my server have one trouble. Random player when he connected, or spawned get guns from nowhere. In server gamemode is not code where I give guns. Where are problem? In OnPlayerUpdate I'm insert code where set guns ammo to 0 if player has that gun, but it's not work.

Guns, which players get (id): 1, 2, 3, 7, 8, 10, 11, 12, 13, 14, 15.
Thanks for the help.
Reply
#2

Check for the AddPlayerClass, there are parameters for giving weapons. Set the last 6 parameters to 0.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Check for the AddPlayerClass, there are parameters for giving weapons. Set the last 6 parameters to 0.
Parameters sets to -1, maybe there is problem?
Reply
#4

What do you mean? AddPlayerClass should look like this:

pawn Код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
If you don't want the players to spawn with weapons, just do something like this:

pawn Код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, 0, 0, 0, 0, 0, 0); //don't change the last six digits (the zeros).
Reply
#5

I mean that weapons parameters sets to -1. But players don't allways get guns. It's like random.
Reply
#6

UP, AddPlayerClass where is weapon parameters I set to 0, but still I get random guns.
Reply
#7

Well, message me your Skype and I'll look through your code (if it's not too big); we'll eventually find a solution.
Reply
#8

Now, when player been respawned right away system shows that player have minigun and etc. guns and players geted ban.

Why players geted various guns? It's not only my server problem, one more server owner say to me that they have same problem. Thanks for you're help.
Reply
#9

UP!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)