HI. Can you halp me.
I am new in scripting and want know where I must use that - %d, %s and ohter in client print. I can't find it.
I make my first plugin (or remake)
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <colorchat>
#define PLUGIN "sayomg"
#define VERSION "1.0"
#define AUTHOR "Extreem"
new p_URL
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /rs", "reset_score")
register_clcmd("say /resetscore", "reset_score")
p_URL = register_cvar("web_url","URL")
}
public reset_score(id)
{
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
new name[33]
get_user_name(id, name, 32)
ColorChat(0, NORMAL, "^1%s Player^4 %s^x01 reset score with usig command ^4 /rs", p_URL, name)
}
public client_putinserver(id)
{
set_task(10.0, "connectzprava", id, _, _, "a", 1)
}
public connectzprava(id)
{
new name[33]
get_user_name(id, name, 32)
if(is_user_connected(id))
{
ColorChat(id, NORMAL, "^1%s Dear^4 %s^1, for resetscore use command ^4/rs",p_URL, name)
}
}
And in chat I have that
Code:
sayomg Player Extreem reset score with usig command /rs
__________________