Raised This Month: $ Target: $400
 0% 

req -Show Country in Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-27-2009 , 16:05   Re: req -Show Country in Chat
Reply With Quote #21

I'll go ahead and modify this one for you.
What all do you want besides admins having all chat?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-27-2009 , 16:12   Re: req -Show Country in Chat
Reply With Quote #22

remove is_user_alive(i) != alive check, and it will be alltalk, like i said before :]
__________________
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-27-2009 , 16:56   Re: req -Show Country in Chat
Reply With Quote #23

Here you are, specifically for you.
There is no country removing for being in the same country as the server, and normal say is all chat.

Check later post.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-28-2009 at 14:06.
Exolent[jNr] is offline
Darknightcze2
Junior Member
Join Date: Oct 2008
Location: Czech Republic! - Middle
Old 02-28-2009 , 03:29   Re: req -Show Country in Chat
Reply With Quote #24

Very good job Exolent. Thank you very much.

I recommend updating GeoIP.dat for the best use.

http://geolite.maxmind.com/download/...eoLiteCountry/

EDIT: Bug!
You can send a empty text (say "", team_say "") >> SPAM..

Emtpy say:


I can not program in amxx. But condition solve this problem. eg: if ($said == "") {return...;} else {...;} //php

Last edited by Darknightcze2; 02-28-2009 at 05:40. Reason: EDIT: add BUG
Darknightcze2 is offline
Send a message via ICQ to Darknightcze2
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-28-2009 , 11:57   Re: req -Show Country in Chat
Reply With Quote #25

after
PHP Code:
remove_quotes(said); 
add
PHP Code:
if( equali(said"") )
    return 
PLUGIN_HANDLED
this will fix empty messages, but i dont know how to block only spaces msgs
__________________
xPaw is offline
Darknightcze2
Junior Member
Join Date: Oct 2008
Location: Czech Republic! - Middle
Old 02-28-2009 , 13:39   Re: req -Show Country in Chat
Reply With Quote #26

Quote:
Originally Posted by xPaw View Post
this will fix empty messages, but i dont know how to block only spaces msgs
I try this:

PHP Code:
trim(said);
strlen(said);
    
if ( 
equali(said"") || strlen(said) == )
return 
PLUGIN_HANDLED

Last edited by Darknightcze2; 02-28-2009 at 14:08.
Darknightcze2 is offline
Send a message via ICQ to Darknightcze2
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-28-2009 , 14:07   Re: req -Show Country in Chat
Reply With Quote #27

Fixed.
Attached Files
File Type: sma Get Plugin or Get Source (country_chat.sma - 957 views - 3.3 KB)
File Type: sma Get Plugin or Get Source (country_chat_xpaw.sma - 881 views - 3.1 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Glist3r
Senior Member
Join Date: Feb 2008
Old 03-15-2009 , 09:35   Re: req -Show Country in Chat
Reply With Quote #28

Quote:
Originally Posted by Exolent[jNr] View Post
Fixed.
What's the difference between those 2 plugins?
__________________
Help me with these requests, please!
http://forums.alliedmods.net/showthread.php?t=85287

Glist3r is offline
beckham9224
Senior Member
Join Date: Feb 2009
Location: Asia, Mongolia
Old 03-15-2009 , 10:07   Re: req -Show Country in Chat
Reply With Quote #29

whats the difference?
beckham9224 is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 03-15-2009 , 10:20   Re: req -Show Country in Chat
Reply With Quote #30

The modified version for xPaw is allchat (dead can read alive and spec, I think)
__________________
IneedHelp 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 13:59.


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