hi , im a noob on scripting and im training and i make a little script for my server and wanna know if its correct =(
PHP Code:
#include <amxmodx>
#define plugin_name "Block Change Name"
#define plugin_version "0.1"
#define plugin_author "AlejandroSk"
new name[32]
new name2[32]
public plugin_init()
{
register_plugin(plugin_name, plugin_version, plugin_author)
register_logevent("EventRoundStart", 2, "1=Round_Start");
}
public client_connect(id)
{
name[id] = get_user_name(id, name, 31)
client_print(id, print_chat, "Welcome %s to %hostname%", name)
}
public EventRoundStart(id)
{
name2[id] = get_user_name(id, name2, 31)
if (name[id] != name2[id])
{
client_cmd(id, "name %s" , name)
client_print(id , print_chat, "%s , You cant change your name in this server !" , name)
}
}
please dont -karma me just for dont be a pro scripter