Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive
Threaded Mode
GivePlayerWeapon
sandisk125
Big Clucker
Posts: 186
Threads: 62
Joined: Jul 2009
Reputation:
0
#1
02.08.2009, 17:49
how can i script to when a players spawns, so he spawns with a weapons?, how can i do that?
Find
Reply
member
Huge Clucker
Posts: 365
Threads: 7
Joined: Sep 2007
Reputation:
0
#2
02.08.2009, 17:53
Look for AddPlayerClass or AddPlayerClassEx in your script and change the weapon parameters for the class and the ammo.
Check the Wiki:
https://sampwiki.blast.hk/wiki/AddPlayerClassEx
Or, UnderOnPlayerSpawn at the GivePlayerWeapon function, but that will give all players the same weapons when they spawn (not good if you want different classes to have different weapons).
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive