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
Threaded Mode
How to make weapons have limited amount of ammo?
Grooty
Big Clucker
Posts: 135
Threads: 59
Joined: May 2013
Reputation:
0
#1
16.06.2013, 22:24
How? Right now all weapons have unlimited ammo, and I want to make my server strict RP.
Find
Reply
Mattakil
Gangsta
Posts: 691
Threads: 96
Joined: Jan 2012
Reputation:
0
#2
16.06.2013, 23:33
just set the ammo on your gun when spawning it?
Find
Reply
Donvalley
Huge Clucker
Posts: 411
Threads: 36
Joined: Jul 2007
Reputation:
0
#3
17.06.2013, 00:41
https://sampwiki.blast.hk/wiki/Function:GivePlayerWeapon
For Example
pawn Код:
GivePlayerWeapon
(
playerid,
33
,
100
)
;
player now has weapon 33 (Rifle) and 100 ammo
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