This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Replace Name All Player AutoMatick ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Daki
BANNED
Join Date: Jul 2010
Old 09-14-2010 , 20:59   Replace Name All Player AutoMatick ?
Reply With Quote #1

Hi People

I Like if any player connect in my server with name example or another or alliedmods name
i like to put first in name [Steam] as this

alliedmods change in [Steam] Alliedmods
All player when connectet in my server i like to put automatick this in nick
[Steam] Player 1
[Steam] Player 2 etc etc

Have anyone this Plugins ?
Daki is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-14-2010 , 21:04   Re: Replace Name All Player AutoMatick ?
Reply With Quote #2

Here ya go:
Attached Files
File Type: sma Get Plugin or Get Source (steam_tag_on_join.sma - 662 views - 418 Bytes)
__________________

Last edited by fysiks; 09-14-2010 at 21:08.
fysiks is offline
awptions
Member
Join Date: Feb 2007
Old 09-14-2010 , 21:21   Re: Replace Name All Player AutoMatick ?
Reply With Quote #3

Sounds like no steam to me.
__________________
awptions is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-14-2010 , 21:31   Re: Replace Name All Player AutoMatick ?
Reply With Quote #4

Quote:
Originally Posted by awptions View Post
Sounds like no steam to me.
But, it will give the tag to everybody regardless.
__________________
fysiks is offline
Daki
BANNED
Join Date: Jul 2010
Old 10-04-2010 , 13:46   Re: Replace Name All Player AutoMatick ?
Reply With Quote #5

man can you told me how can i edit not showed [Steam] but showed like this

[FB]Name1
[FB]Name2

?
Daki is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-04-2010 , 13:48   Re: Replace Name All Player AutoMatick ?
Reply With Quote #6

Quote:
Originally Posted by Daki View Post
man can you told me how can i edit not showed [Steam] but showed like this

[FB]Name1
[FB]Name2

?
Code:
new const PRE_TAG[] = "[Steam]"

Code:
new const PRE_TAG[] = "[FB]"
That was exhausting.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Daki
BANNED
Join Date: Jul 2010
Old 10-04-2010 , 13:52   Re: Replace Name All Player AutoMatick ?
Reply With Quote #7

I edit that but again showed [Steam]
Se :

Quote:
#include <amxmodx>

new const PRE_TAG[] = "[FB]"
new const POST_TAG[] = ""

public plugin_init()
{
register_plugin("Clan Tag on Join","1.0","Fysiks")
}

public client_putinserver(id)
{
new name[33]
get_user_name(id,name,32)

if ( !equal( name , PRE_TAG , charsmax( PRE_TAG ) ) )
{
format( name, charsmax(name), "%s%s%s", PRE_TAG, name, POST_TAG)

set_user_info(id, "name", name)
}
}
Daki is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-04-2010 , 13:53   Re: Replace Name All Player AutoMatick ?
Reply With Quote #8

You need to recompile it and put the .amxx in the plugins folder. Then you have to restart your server.
__________________
fysiks is offline
Daki
BANNED
Join Date: Jul 2010
Old 10-04-2010 , 14:06   Re: Replace Name All Player AutoMatick ?
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
You need to recompile it and put the .amxx in the plugins folder. Then you have to restart your server.
ahaa
if i edit something in script in file .sma i need to recomplie and again put in server and change level
But how can i re-complie .sma file ?
Do you have any website for that ?
Daki is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-04-2010 , 14:09   Re: Replace Name All Player AutoMatick ?
Reply With Quote #10

http://www.amxmodx.org/webcompiler.cgi
__________________
fysiks 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 18:13.


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