Raised This Month: $ Target: $400
 0% 

Remembering names


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-07-2005 , 15:24   Remembering names
Reply With Quote #1

Hey, you know when you llama someone it changes their name to Llama, and when you `unllama` them it changes back to their original name? How do you do that?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-07-2005 , 17:12  
Reply With Quote #2

Use get_user_info to get a user's current name, save it to a variable, use client_cmd to force them to change their name, and when you want to change it back set it to what you saved.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-07-2005 , 17:32  
Reply With Quote #3

you know there IS a command called get_user_name?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-07-2005 , 17:45  
Reply With Quote #4

Oh, yeah, that...
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-07-2005 , 21:15  
Reply With Quote #5

Quote:
Originally Posted by XxAvalanchexX
Use get_user_info to get a user's current name, save it to a variable, use client_cmd to force them to change their name, and when you want to change it back set it to what you saved.
Example?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-07-2005 , 21:50  
Reply With Quote #6

Code:
new names[33][33]; public dothing(id) {   // la-di-da-dee-dah, player is now magically our target   get_user_name(player,names[player],32);   client_cmd(player,"name ^"The name here!^""); } public undothing(id) {   // once again, assuming player is our target   client_cmd(player,"name ^"%s^"",names[player]); }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-07-2005 , 22:23  
Reply With Quote #7

Oh, simple lol. Thanks .

As you can tell I'm new to AMXX scripting, but I do code server side stuff also .

Edit: What if I wanted to do it with something else (a team)? ..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-08-2005 , 00:46  
Reply With Quote #8

Use get_players and loop through everyone.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DarkShadowST
Member
Join Date: Apr 2004
Location: Texas
Old 02-08-2005 , 00:48  
Reply With Quote #9

Quote:
Edit: What if I wanted to do it with something else (a team)? ..
it??
__________________
My Current Desktop:
Entire

DONT WATCH ME!!! Evil...People...
DarkShadowST is offline
Send a message via AIM to DarkShadowST Send a message via MSN to DarkShadowST Send a message via Yahoo to DarkShadowST
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-08-2005 , 01:07  
Reply With Quote #10

Quote:
Originally Posted by XxAvalanchexX
Use get_players and loop through everyone.
lol
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 19:20.


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