SA-MP Forums Archive
More weapons ad addplayerclass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: More weapons ad addplayerclass (/showthread.php?tid=90130)



More weapons ad addplayerclass - urkiefly101 - 06.08.2009

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 ?


Re: More weapons ad addplayerclass - Sergei - 06.08.2009

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


Re: More weapons ad addplayerclass - urkiefly101 - 06.08.2009

And where do i need to put that?


Re: More weapons ad addplayerclass - gtalover12 - 06.08.2009

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



Re: More weapons ad addplayerclass - urkiefly101 - 06.08.2009

Thanks, you helped me with this.