can any one plz help me out.......
i want a plugin of amxmodx for cs1.6 which shows the name of owner when client says "/owner"
i tried some code but it did'nt work.... i did't know this pawn language :@
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
static const COLOR[] = "^x04"
new gmsgSayText
gmsgSayText = get_user_msgid("SayText")
public plugin_init()
{
register_plugin("Show Owner", "1.0", "Mirxa TouQeer")
register_clcmd("say /owner", "show_owner")
//register_clcmd("say /restartscore", "reset_score")
//register_clcmd("say /rs", "reset_score")
}
public show_owner(user)
{
new len
len = format(message, 255, "%s Owner: ",COLOR)
print_message(user,message)
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
plzz help me........