Raised This Month: $ Target: $400
 0% 

Events..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BlinkHardeR
Member
Join Date: Aug 2011
Location: Israel, Holon
Old 10-01-2011 , 11:10   Events..
Reply With Quote #1

What event are they? like Death..

what do i do?
register_event( "Death", "blabla")?

can u give me the event of round:
start\end
Death
Round Draw
Player Die..
BlinkHardeR is offline
Send a message via Skype™ to BlinkHardeR
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-01-2011 , 13:11   Re: Events..
Reply With Quote #2

It's been heavily discussed, please search.

register_event() hooks when a game event message is triggered.
List: http://wiki.amxmodx.org/Half-Life_1_Game_Events
register_message() can be also used for editing those messages.

About roundstart/end, you need register_logevent(), that hooks (some) log messages from the console.

But still, search.
__________________
Hunter-Digital is offline
BlinkHardeR
Member
Join Date: Aug 2011
Location: Israel, Holon
Old 10-02-2011 , 00:07   Re: Events..
Reply With Quote #3

What do i do with it.. like?
PHP Code:
register_event("BombPickup""bla bla");

-------

public 
blabla(id) { 
BlinkHardeR is offline
Send a message via Skype™ to BlinkHardeR
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-02-2011 , 06:25   Re: Events..
Reply With Quote #4

Maybe I wasn't clear enough... search !
__________________
Hunter-Digital is offline
BlinkHardeR
Member
Join Date: Aug 2011
Location: Israel, Holon
Old 10-02-2011 , 13:49   Re: Events..
Reply With Quote #5

..... maybe i ALRADY SEARCHED!?
BlinkHardeR is offline
Send a message via Skype™ to BlinkHardeR
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-02-2011 , 14:37   Re: Events..
Reply With Quote #6

If you did, you searched wrong, because I'm sure that there are alot of examples and plugins that at least use round start and round end logevents... you just don't try hard enough :}
__________________
Hunter-Digital is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 10-05-2011 , 10:32   Re: Events..
Reply With Quote #7

Quote:
Originally Posted by BlinkHardeR View Post
What do i do with it.. like?
PHP Code:
register_event("BombPickup""bla bla");

-------

public 
blabla(id) { 
You code the thing you want to happen at that event.

Amyways I don't think you even should care about events yet.
Seems more like you should check the tutorials, the rules and the stickys.
Erox902 is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-05-2011 , 14:01   Re: Events..
Reply With Quote #8

Quote:
Originally Posted by BlinkHardeR View Post
What do i do with it.. like?
PHP Code:
register_event("BombPickup""bla bla");

-------

public 
blabla(id) { 
You can make it that it will print in chat for that player that he picked up the bomb. You can make that he will get something and so on... Much things.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
Reply


Thread Tools
Display Modes

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 19:40.


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