Designed bY viSta ;x
Fiind uN clan mai now,quake - Team recruteaza membri clan
Nu ezita sa te inscri in acest clan,avem nevoie de ajutorul vostru !
Intra in comunitatea quAke - Team si distreaza-te alaturi de noi !



 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Eventuri[INFO] [AmxX]

Go down 
AuthorMessage
Aleku



Posts : 94
Join date : 04/06/2009

PostSubject: Eventuri[INFO] [AmxX]   Tue Jun 09, 2009 9:26 pm

Ce face un event ?
Un event va executa automat un public cand ii specificam noi , dupa anumite criterii . Event-urile se inregistreaza prin functia register_event , in plugin_init , dupa register_plugin , register_concmd-uri si ce mai aveti voi pe acolo . Daca folositi event-urile de mai jos , nu uitati sa adaugati tab-uri inaintea lor , pentru a nu primi eroarea loose identitation la compilare .


Mai jos veti vedea niste event-uri foarte utile , care probabil va vor fi de ajutor in crearea Plugin-urilor dvs.


Executa un public cand Jucatorul primeste spawn (Cand "reinvie") :

Code:
register_event("ResetHUD","event_spawn","be")


Executa un public cand Jucatorul isi cumpara gloante :

Code:
register_event("AmmoPickup","event_pickupammo","be")


Executa un public cand Jucatorul isi cumpara o arma :


Code:
register_event("WeapPickup","event_pickupweapon","be")


Executa un public cand jucatorul isi cumpara un item :


Code:
register_event("ItemPickup","event_pickupitem","be")



Executa un public cand jucatorul aprinde / stinge lanterna :


Code:
register_event("Flashlight","event_flashlight","be")



Executa un public cand jucatorul face damage :


Code:
register_event("Damage","event_damage","be")



Executa un public cand jucatorul foloseste comanda "say" :


Code:
register_event("SayText","event_saycmd","be")



Executa un public cand bomba este plantata :


Code:
register_event("TextMsg", "bomb_planted", "a", "2&%!MRAD_BOMBPL")



Executa un public cand bomba este dezamorsata :


Code:
register_event("TextMsg", "bomb_defused", "a", "2&%!MRAD_BOMBDEF")



Executa un public cand bomba explodeaza :


Code:
register_event("TextMsg", "bomb_explode", "a", "2&#Target_B")



Executa un public cand bomba este luata de pe jos :


Code:
register_event("TextMsg", "bomb_pickup", "bc", "2&#Got_bomb")



Executa un public cand bomba este aruncata pe jos :


Code:
register_event("TextMsg", "bomb_dropped", "bc", "2&#Game_bomb_d")



Executa un public cand castiga teroristii :


Code:
register_event("SendAudio","twin","a","2=%!MRAD_terwin"")



Executa un public cand castiga counteristii :


Code:
register_event("SendAudio","ctwin","a","2=%!MRAD_ctwin")



Executa un public cand are loc o remiza (Round Draw) :


Code:
register_event("SendAudio","rounddraw","a","2=%!MRAD_rounddraw")



Executa un public cand se termina runda :


Code:
register_event("SendAudio","roundend","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")


Dupa ce ati pus event-urile puneti un public care acel event sal execute.

Code:
roundend, rounddraw etc.

sunt acele publice ce trebuie executate.
exemplu:
Cand echipa Tero castiga:

Code:
#include <amxmodx>


public plugin_init() {
register_plugin("Ts Win Test", "0.1","P.Of.Pw")
register_event("SendAudio","twin","a","2=%!MRAD_terwin"")
}

public twin(){

client_print(0, print_chat," Terorist Team Win")
}



O sa apara in in chat Terorist Team Win
Sper ca am ajutat pe cineva Smile
!!!Info
Nu folositi la public sau la eventu-ri sau la orice cu spatiu
exemplu:

Code:
public t Win(){

}

Este GRESIT
trebuie:

Code:
public twin(){

}


Acum alt exemplu:

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
register_plugin("C4 Plantet Msg Test", "0.1","P.Of.Pw")

register_event("TextMsg", "bomb_planted", "a", "2&%!MRAD_BOMBPL")
}

public bomb_planted(){
client_print(0, print_chat,"Bomba a fost pusa.. go go go")
}

Cand unu jucator de la Tero planteaza bomba arata un mesaj in chat : "Bomba a fost pusa.. go go go"
Sper ca ati inteles Smile
Back to top Go down
View user profile
 
Eventuri[INFO] [AmxX]
Back to top 
Page 1 of 1
 Similar topics
-
» Maxine's Info On The Snazzy Kitty
» EXchess
» Drawing of my sisters fantage avatar~
» WTF (because you need useless info)
» Rhetoric engine testing right now any info?

Permissions in this forum:You cannot reply to topics in this forum
Designed bY viSta ;x  :: ¨˜”°º• » Utilitati Counter-Strike « •º°”˜¨ :: Tutoriale-
Jump to: