AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How can i make ordinary action on specific event? (https://forums.alliedmods.net/showthread.php?t=45439)

orglee 10-02-2006 12:32

How can i make ordinary action on specific event?
 
Hello.
How can i check events.
For example, when player dies or has been killed how can i check it and send some msg to the player? I also would like know the list of events. All of them.
Of course with descriptions. Can you tell me when can i find an how to use it.
Regards.

VEN 10-02-2006 14:44

Re: How can i make ordinary action on specific event?
 
No problem, you are welcome: http://forums.alliedmods.net/search.php

Rolnaaba 10-02-2006 14:48

Re: How can i make ordinary action on specific event?
 
check out http://wiki.amxmodx.org/index.php/Ha..._1_Game_Events list of all events and discriptions

orglee 10-02-2006 15:15

Re: How can i make ordinary action on specific event?
 
Hmm but i dont see there Events when someone has killed enemy or team8.

VEN 10-02-2006 15:46

Re: How can i make ordinary action on specific event?
 
You have to check their team with native functions, something like get_user_team, visit this link for more info: http://www.amxmodx.org/funcwiki.php

orglee 10-02-2006 17:02

Re: How can i make ordinary action on specific event?
 
Quote:

Originally Posted by VEN (Post 386873)
You have to check their team with native functions, something like get_user_team, visit this link for more info: http://www.amxmodx.org/funcwiki.php

That isnt what i had in mind.
Lets try diffrent way.

For example when player dies, what event can inform me about it.

Events i need:

Player dies. (Why/How)
Player has beed killed. ( how/from witch weapon)
Bomb. Dropped/Pickedup/Defused/Exploded
Weapon (Bought/Picked up/Dropped)
Round end.
- Dmg given.
- Dmg taken.

In other words i want to know events whitch i can use to create statistic plugin.

SweatyBanana 10-02-2006 17:06

Re: How can i make ordinary action on specific event?
 
PHP Code:

    register_event("Damage""Event_Damage""be""2!0")
    
register_event("DeathMsg""Event_Death""a"


VEN 10-03-2006 00:24

Re: How can i make ordinary action on specific event?
 
For bomb and round end see the Code snippets/Tutorials section.


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

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