[HelpREQ] How can I set up above avarage Round Time and colored text?
Hi all.
I'm a noob with scripting and I just wanted to know this one little thing. The maximum minutes you can set up the round clock with the PHP Code:
Thanks alot for all helpers and especially thanks to ot_207(:mrgreen:), dor123:up: |
Re: [HelpREQ] How to set chat text colors, roundtime and forwarding
This is what you need to use for colored messages
Beware! Before showing the message to the player you must format it PHP Code:
PHP Code:
^x03 Make me cry ^x04 yea ^x01 mama Will apear ( if you are terrorist)-> Make me cry yea mama PHP Code:
To register forwards in fakemeta the function is: PHP Code:
|
Re: [HelpREQ] How to set chat text colors, roundtime and forwarding
Quote:
2. Here is what I did: PHP Code:
About forward, I didn't ment how to register, that thing I already knew. What I ment is why should I forward? What does it do? What does PreThink and PostTHink and stuff like that mean? If you could find any guides/tutorials or simply explain to me those things I will be gratefull (also I added karma to you :wink:) Thank you so much for the help you just made my day, well night, dor123:up: |
Re: [HelpREQ] How to set chat text colors, roundtime and forwarding
'msg' is an array,so the argument declaration must be 'msg[]'.
|
Re: [HelpREQ] How to set chat text colors, roundtime and forwarding
Quote:
The forwards are functions which are called when a particular event happens. There are 3 types of forwards event forwards -> example "Damage", "CurWeapon" etc... To register these events use -> PHP Code:
As example: I will give the CurWeapon event. Curweapon is an event which is called when a player swiches weapons, shoots weapons, and even reloads. When one of these actions happen, the event is called with certain parameters. That is why when example a player has changed a weapon you need to hook the Curweapon event this way -> PHP Code:
Fakemeta forwards -> Allows a lot of forwards which can be very very helpfull. Example: FM_PlayerPreThink, FM_Think, FM_EmitSound Code:
enum {The forward FM_EmitSound takes place when at an origin a sound is emited. For example I will give the moment when a he grenade explodes. It will produce a sound that will make a player know that it has kaboomed. When the sound is produced or better said before that. The forward FM_EmitSound is called with these paramaters (ent, iChannel, const szSample[], Float:fVolume, Float:fAttenuation, iFlags, iPitch) To get an accurate forward you must check almost all the paramaters. ent = hegrenade iChannel = the channel which was chosen (not important) szSample[] = the sound that will be emited The rest are some other stuff that I didn't use... FM_PlayerPreThink is a function which takes place repetetively on an ammount of x miliseconds. The same for postThink. But the diference is that these ones take place one after another. Then the func will execute this way: -> PRETHINK -> POSTHINK -> PRETHINK ... And the last Hamsandwich forwards -> RegisterHam(Ham_XXX,entclassname[],"function",post=0) The same as fakemeta ;). |
Re: [HelpREQ] How to set chat text colors, roundtime and forwarding
Quote:
Quote:
PHP Code:
Why should I use it? Could you give me an example of things that would be good to have them working repetetively on an amount of x miliseconds? And if Hamsandwich is same as FakeMeta, why should I use it? Sorry for all the questions and thanks again, dor123:up: |
Re: [HelpREQ] How to set chat text colors, roundtime and forwarding
Quote:
And There are forwards which repeat themselves on an entity-> There are 3 forwards which I have used that repeat themselves -> These are (from fakemeta) : FM_PlayerPreThink FM_PlayerPostThink, and FM_Think That means that an entity (FM_Think) / player (FM_player...) is thinking. It is a forward which is called by the engine every 0.0... miliseconds. The diference between them is that FM_Think is used for entities and FM_Player... takes place for players. These thinks are a tasks which repeats itself the way I said a bit earlyer. Hamsandwich is good becouse it offers a lot of functions which are the things that fakemeta didn't have. For example: Ham_TakeDamage is one of the best functions (at least I think so :D) that is offered by that module. My opinion is that the combination of Fakemeta and Hamsandwich = The BEST!!! |
Re: [HelpREQ] How to set chat text colors, roundtime and forwarding
Ok, thanks alot ot_207 you helped me alot.
I think i''ll start with the basics before going to forwards, FakeMeta and HamSandwich. I'm too noob for those ;) I'll leave that to the pros (like you) for now untill I get the hang of things. Oh and btw, you didn't answered me why "mama" was orange if you put ^x01 next to it, and if ^x01 is normal color? I edited to main post for the stuff you helped me with them. Now all left is round time :) Thanks alot and don't think you wasted your time on me for nothing, i'll use it somewhen, dor123:up: |
Re: [HelpREQ] How can I set up above avarage Round Time?
It is orange/the chatcolor that you have
That means when your chat color is white for example the color that will apear will be white ( normal chat color ). The default settings in cs makes your chat look like a yellow to orange. That is why it will apear orange. |
Re: [HelpREQ] How can I set up above avarage Round Time?
I already edited the main post but I'm still having problems.
I did everything perfectly fine: PHP Code:
In the console there was this message: Code:
Host_Error: WriteDest_Parm: not a clientI want that the colored_msg function will put a green "[XXX]" at the beginning of the text. Sorry for bothering, dor123:up: |
| All times are GMT -4. The time now is 05:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.