Glow Event
Hi!
I have a problem, i canīt make an event that glow players. In fact, i don`t understand how works the register_event native at all. I was looking tutorials in this forums, the Amx Mod X documentation, searching examples in another plugins but didnīt found what i want to learn. What I want is to make a global event that glows a player with some id. For example, the player who has the bomb glows green and who have defuse kit glows blue. This is just an example, i could say too that players who has certain condition glows of certain color. I donīt want a pluging who makes this, what i want is if someone can explain me how to make an glow event. Thanks for your help and sorry for my bad english! |
Re: Glow Event
There is no event for when a user glows, however there is a native!
http://www.amxmodx.org/funcwiki.php?...ring&go=search I don't know how experienced you are in pawn, so post back if you're still having trouble. |
Re: Glow Event
Thanks for your answer!, but thatīs not what i was looking for :( I allready knew that native.
I was searching the list of cs events and i found this one: http://wiki.amxmodx.org/index.php/Ha...vents#TeamInfo The question is: Supossing i save the id of c4 keeper in the variable "c_keep" . Then, i use this event teaminfo as a global event and to alive ("ae"). In the event public i put this: new c_id = read_data(1); // get the user id new c_tid = read_data(2); // get the team of player Then I make this condition: If(c_id != c_keep){ set_rendering(c_id, kRenderFxGlowShell, Team_glow[c_tid][0],Team_glow[c_tid][1], Team_glow[c_tid][2], kRenderNormal, 96) // where the variables team_glow are already defined } else if(c_id == c_keep){ set_rendering(c_id, kRenderFxGlowShell, c4_glow[c_tid][0],c4_glow[c_tid][1], c4_glow[c_tid][2], kRenderNormal, 96) } Will this work? If it does, it will works any time?. This last question is the really important. For example, if players gets c4 will glow of certain way and when he drop it will inmediately change his glow? Thanks for your help! |
Re: Glow Event
1 Attachment(s)
something like this....If user have C4 is glowing "pink". If have Defuse is glowing green!
|
Re: Glow Event
Quote:
thanks for that! I wasnt looking for that plugin , but makes me understand how to make what i want. +karma for you! Another question: what diference there are between an event and a forward? Is that the forward is called when specificaly succes happen and the event just take the values of the messages between the console and the game? thanks! |
Re: Glow Event
http://wiki.amxmodx.org/Advanced_Scr...nts.2FMessages ,answer 4 you'r question! :wink:
|
| All times are GMT -4. The time now is 10:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.