Scripting onjoin msg help
Ok so, im new to sm scripting. I really have no clue how to do anything yet, so im trying to learn.
If anyone here is familiar with eventscripts, can you convert a simple advert onjoin script I made to sourcemod plugin? If I could just see how a simple script is done like this in sourcemod, it would help greatly. Code:
How would you duplicate this in SM? |
Re: Scripting onjoin msg help
PHP Code:
|
Re: Scripting onjoin msg help
Awesome Bl4nk. Thanks so much.
The script works. Looks like there are some errors in the text part though. Its in lightgreen instead of green for one, and it cuts off the words after bind a key. Doesnt show any text after that. Why is that? EDIT: NM. I think I got it. It looks like you meant to probably put \x04 for green and \x01 for the white part. \x00 makes the text after that disappear. Putting \x01 seemed to fix it. Is that correct? x04 is green x03 is lightgreen x02 = ? x01 = white x00 = text gone? |
Re: Scripting onjoin msg help
Yeah, you're right. I forgot what the color codes were, but what you said is right.
|
Re: Scripting onjoin msg help
Gotcha. Just been fiddling around.
So here is what I have now. Code:
#pragma semicolon 1 |
Re: Scripting onjoin msg help
5 seconds is pretty short of a time for that timer. When they enter the game kill spam with scroll/replace any message they would see. I would change it to 30 seconds. In addition I would add a client == 0 and isclientconnected to the start of the timer as well to avoid in unnecessary timer creations. Something like:
PHP Code:
|
All times are GMT -4. The time now is 00:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.