Raised This Month: $ Target: $400
 0% 

Get player name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Spriite
Member
Join Date: Aug 2010
Old 02-19-2012 , 09:22   Re: Get player name
Reply With Quote #3

Maybe something like this:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
 
new pl_Name[33][40];
new 
szFormat[33][150];
 
public 
plugin_init() {
 
register_plugin("SHow MOTD""1.0""SpriiTe")
 
 
register_clcmd("say /motd""motd");
}
 
public 
motd(id)
{
 
get_user_name(idpl_Name[id], charsmax(pl_Name[]));
 
 
formatex(szFormat[id], charsmax(szFormat[]), 
 
"<html> \
 <center> \
 <font size=20> Your nick is: <font color=red>%s</font></font> \
 </center> \
 </html>"
pl_Name[id]);
 
 
show_motd(idszFormat[id], "MOTD");


Last edited by Spriite; 02-19-2012 at 09:23.
Spriite is offline
 



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 23:20.


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