Hello !
I wanna the part of script that set something every round
Like a
I have a plugin that gives a bonus and idk how to set it each new round. and if u want the script here is it :
Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <cromchat>
//PS : I know my code is shitty so please don't remind me about it :)
new g_pPrefix;
public plugin_init() {
register_plugin("Steam Bonus", "2.0", "YusoChan-");
RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1);
CC_SetPrefix("&x01[&x04FURIEN.NPOWERED.RO&x01]");
}
public client_putinserver(id)
{
set_task(1.0, "GIVE", id)
}
public GIVE(id)
{
if(is_user_alive(id) || !is_user_steam(id)) {
return PLUGIN_HANDLED;
}
new name[33]
get_user_name( id, name, 32 )
set_user_health(id, get_user_health(id) + 25);
cs_set_user_money(id, cs_get_user_money(id) + 2500);
set_user_armor(id, get_user_armor(id) + 25);
//Message:
CC_SendMessage(id, "%s &x01Dear: &x04%s &x03You have got &x042500&x01$/&x0425&x01HP/&x0425&x01AP/", g_pPrefix, name);
return 0;
}
stock bool:is_user_steam(id)
{
static dp_pointer
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id)
server_exec()
return (get_pcvar_num(dp_pointer) == 2) ? true : false
}
return false
}
__________________