Hello,
I wanted a .sma plugin to read the color of the crosshair of a player (cl_crosshair_color), if "189 342 874" make the player
say "ExecScreen On" and if any other color rename the player to [ES-Off]"old name of the player":
PHP Code:
get_user_info(id, "cl_crosshair_color",cl_crosshair_color, 31)
if(cl_crosshair_color == "152 132 854"){
client_print(id,print_chat,"[ ExecScreen On ]")
}
else{
client_cmd("name ^"[ES-Off]%s^"",name)
client_print(id,print_chat,"ExecScreen Off!")
client_print(id,print_console,"ExecScreen Off!")
client_print(id,print_notify,"ExecScreen Off!")
client_print(id,print_center,"ExecScreen Off!")
}
I tried but did not quite right :/
__________________