Raised This Month: $ Target: $400
 0% 

Possible to assign names or is it?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Whazza
Veteran Member
Join Date: Oct 2006
Location: germany/Kassel
Old 03-16-2010 , 08:03   Possible to assign names or is it?
Reply With Quote #1

Hi, I wanted to ask whether it exists or is possible to write .

I wanted to assign my name admins via steam id because some like to change his name xD

so that one in a config

steam_id:123456789 = xxx_player
steam_id:987654321 = xxx_zocker

I look forward of a reply.


sorry for my bad englisch
__________________
"Ein kluger Mensch macht nicht alle Fehler selber, er gibt auch anderen eine Chance."
Whazza is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-16-2010 , 10:49   Re: Possible to assign names or is it?
Reply With Quote #2

public plugin_init() {
register_event("HLTV", "eNewRound", a, "1=0", "2=0")

}

public eNewRound(id) {
new Name[32], AuthID[35]
get_user_name(id, Name, 31)
get_user_authid(id, AuthID, 34)
if(AuthID == steam_id:123456789) {
client_cmd(id, "name xxx_player")
}
}

and so on
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Whazza
Veteran Member
Join Date: Oct 2006
Location: germany/Kassel
Old 03-16-2010 , 11:37   Re: Possible to assign names or is it?
Reply With Quote #3

that does not work

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/groups/amxmodx/tmp3/textSMobuf.sma(2) : error 017: undefined symbol "register_event"
/groups/amxmodx/tmp3/textSMobuf.sma(2) : warning 215: expression has no effect
/groups/amxmodx/tmp3/textSMobuf.sma(2) : warning 215: expression has no effect
/groups/amxmodx/tmp3/textSMobuf.sma(2) : error 001: expected token: ";", but found ")"
/groups/amxmodx/tmp3/textSMobuf.sma(2) : error 029: invalid expression, assumed zero
/groups/amxmodx/tmp3/textSMobuf.sma(2) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
__________________
"Ein kluger Mensch macht nicht alle Fehler selber, er gibt auch anderen eine Chance."
Whazza 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 01:48.


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