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
Ammo help
Marusa
Big Clucker
Posts: 111
Threads: 33
Joined: Feb 2011
Reputation:
0
#1
25.07.2012, 13:04
Is there any way to recognize when player spend all ammo from one weapon ??
Find
Reply
dalkgamler
Big Clucker
Posts: 145
Threads: 18
Joined: Jan 2012
Reputation:
0
#2
25.07.2012, 13:05
maybe GetPlayerAmmo in onplayer update
Find
Reply
DeathOnaStick
High-roller
Posts: 1,028
Threads: 45
Joined: May 2009
Reputation:
0
#3
25.07.2012, 14:09
Yes it is.
You can use
GetPlayerWeaponData
for that.
I implemented something like that into my anti-cheat script to reset the weapon permission when the ammo is empty.
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