![]() |
Chat System
This is just a really basic (bare bones) of a chat system.
I decided to post it here seeming as I have no use for it. I originally scripted it just for fun. PHP Code:
|
Don't send the player's nick with the trigger.
|
You might want to filter the chatbar aswell, or use a specific prefix (Classic just re-uses toall: ) as that would catch stuff like staff commands, sethead etc.
|
Changed and made the players nick send to all clients from serverside.
And what do you mean by a prefix? The chat bar on this is solely for chatting and wasn't meant for staff commands or sethead. |
Quote:
|
Ok, just a quick question.
Let's say for instance I want to do the warpto one. I know how you would do it if there were only a level name. You would use substrings, but how would you do it with three paramaters in the text? Is there any way to get them by checking if there seperated by a space? |
temp.str = "warpto 30 30 level.nw";
temp.toks = temp.str.tokenize(" "); echo(temp.toks[0]); |
Thanks..
|
Quote:
|
Ah then I take that back, easy mistake to make with it being one character different.
|
1 Attachment(s)
You gotta watch out for them underscores!
They'l bite you in the arse when your not looking! |
All times are GMT +2. The time now is 08:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.