More weapons ad addplayerclass
#1

How can i give someone more weapons when they spawn? Cause when i change this line
Quote:

AddPlayerClass(260,-2062.5583,237.4662,35.7149,268.8936,30,150,25,50,2 9,150); //Worker

to this
Quote:

AddPlayerClass(260,-2062.5583,237.4662,35.7149,268.8936,30,150,25,50,2 9,150,16,; //Worker

It give me warnings like 'number of arguments does not match defenition' and my class selection is messes up, how do i add more weapons ?
Reply
#2

You can't, that's native functions.
You can give more weapons with GivePlayerWeapon function
Reply
#3

And where do i need to put that?
Reply
#4

Place the
Код:
GivePlayerWeapon(playerid, weaponid, ammo);
under
Код:
OnPlayerSpawn(playerid)
Reply
#5

Thanks, you helped me with this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)