Raised This Month: $ Target: $400
 0% 

Glow Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xjre
New Member
Join Date: May 2007
Old 05-16-2007 , 16:22   Glow Event
Reply With Quote #1

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!
Xjre is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 05-16-2007 , 16:32   Re: Glow Event
Reply With Quote #2

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.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Xjre
New Member
Join Date: May 2007
Old 05-17-2007 , 13:36   Re: Glow Event
Reply With Quote #3

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!
Xjre is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-17-2007 , 13:52   Re: Glow Event
Reply With Quote #4

something like this....If user have C4 is glowing "pink". If have Defuse is glowing green!
Attached Files
File Type: sma Get Plugin or Get Source (glow_by_items.sma - 604 views - 645 Bytes)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Xjre
New Member
Join Date: May 2007
Old 05-17-2007 , 14:25   Re: Glow Event
Reply With Quote #5

Quote:
Originally Posted by Alka View Post
something like this....If user have C4 is glowing "pink". If have Defuse is glowing green!

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!
Xjre is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-17-2007 , 14:35   Re: Glow Event
Reply With Quote #6

http://wiki.amxmodx.org/Advanced_Scr...nts.2FMessages ,answer 4 you'r question!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Reply



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 10:31.


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