AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Events.. (https://forums.alliedmods.net/showthread.php?t=168602)

BlinkHardeR 10-01-2011 11:10

Events..
 
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..

Hunter-Digital 10-01-2011 13:11

Re: Events..
 
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.

BlinkHardeR 10-02-2011 00:07

Re: Events..
 
What do i do with it.. like?
PHP Code:

register_event("BombPickup""bla bla");

-------

public 
blabla(id) { 


Hunter-Digital 10-02-2011 06:25

Re: Events..
 
Maybe I wasn't clear enough... search !

BlinkHardeR 10-02-2011 13:49

Re: Events..
 
..... maybe i ALRADY SEARCHED!?

Hunter-Digital 10-02-2011 14:37

Re: Events..
 
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 :}

Erox902 10-05-2011 10:32

Re: Events..
 
Quote:

Originally Posted by BlinkHardeR (Post 1566833)
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.

Evaldas.Grigas 10-05-2011 14:01

Re: Events..
 
Quote:

Originally Posted by BlinkHardeR (Post 1566833)
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.


All times are GMT -4. The time now is 19:40.

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