Can't find a tut about it, there's one about round events, but can't combine it with what I need..so I ask for help
I will leave a example so you can understand what I need :L
PHP Code:
new cvar_1, cvar_2, cvar_3
public plugin_init() {
register_clcmd("say cvar1", "cmdCvar1")
register_clcmd("say cvar2", "cmdCvar2")
register_clcmd("say cvar3", "cmdCvar3")
cvar_1 = register_cvar("cvar3", "2")
cvar_2 = register_cvar("cvar2", "3")
cvar_3 = register_cvar("cvar3", "5")
}
public cmdCvar1(id) {
// round event ( cvar_1 is "2", so you can get awp every 2 rounds
give_item(id, "weapon_awp")
}
public cmdCvar2(id) {
// round event ( cvar_2 is "3", so you can get scout every 3 rounds
give_item(id, "weapon_scout")
}
public cmdCvar3(id) {
// round event ( cvar_3 is "5", so you can get famas every 5 rounds
give_item(id, "weapon_famas")
}
That's all