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
explosion detection
Extraordinariness
Big Clucker
Posts: 102
Threads: 34
Joined: Feb 2014
Reputation:
0
#1
06.04.2014, 05:26
how do I detect(script) if the player hits by an explosion?
Find
Reply
Corekt
Big Clucker
Posts: 74
Threads: 4
Joined: May 2013
Reputation:
0
#2
06.04.2014, 07:01
Under
OnPlayerTakeDamage
callback, check if weaponid (aka reason for damage) is the explosion reason, which would be 51 for your case.
You can find a list of weapon/damage reason IDs here:
https://sampwiki.blast.hk/wiki/Weapons
Find
Reply
Extraordinariness
Big Clucker
Posts: 102
Threads: 34
Joined: Feb 2014
Reputation:
0
#3
06.04.2014, 08:52
Thanks.
Oh btw it says "error number I forget: function differs from prototype"
and I searched more in wiki and it says, "
, bodypart
only works for 0.3z.".
but I use 0.3z!
Find
Reply
Extraordinariness
Big Clucker
Posts: 102
Threads: 34
Joined: Feb 2014
Reputation:
0
#4
07.04.2014, 10:35
1 day bump.
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: 3 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help