Raised This Month: $51 Target: $400
 12% 

Plugin Scripting Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Captain Stubin
Member
Join Date: Jun 2017
Old 11-26-2018 , 03:44   Plugin Scripting Help
Reply With Quote #1

public OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath, EventHookMode_Pre)
}

public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
if (GetEventBool(event, "headshot"))
{
return Plugin_Handled
}
return Plugin_Continue
}

Question I need to add more events what do I need to continue the code ?

Last edited by Captain Stubin; 11-26-2018 at 04:56. Reason: Delete
Captain Stubin is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 11-26-2018 , 04:35   Re: Plugin Scripting Help
Reply With Quote #2

you hook more events in OnPluginStart

and btw wrong section

you should post here https://forums.alliedmods.net/forumdisplay.php?f=107

ask mod to move it for you
__________________

Last edited by 8guawong; 11-26-2018 at 04:36.
8guawong is offline
Captain Stubin
Member
Join Date: Jun 2017
Old 11-26-2018 , 05:01   Re: Plugin Scripting Help
Reply With Quote #3

Add to if (GetEventBool(event, "userid")) another event for example
the "userid" I'm talking about. To have several events ( values ) in one

Last edited by Captain Stubin; 11-26-2018 at 05:03.
Captain Stubin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode