Code: Select all
give_item(tempid, "weapon_glock18") cs_set_weapon_ammo(find_ent_by_owner(5, "weapon_glock18", tempid), 5)
ir dar vienas:
Code: Select all
new day[33]new g_pcvar_mp_roundtime public plugin_init(){ RegisterHam(Ham_Spawn, "player", "spawn", 1) register_event("DeathMsg", "death", "a") register_clcmd("say /test", "la") g_pcvar_mp_roundtime = get_cvar_pointer("mp_roundtime")} public death(){ day[read_data(2)] = false} public spawn(id){ day[id] = true} public la(id){ if(day[id]) printas("TEST")} stock printas(const day[]){ set_hudmessage(85, 255, 0, 0.1, 0.3, 0, 6.0, float(floatround(get_pcvar_float(g_pcvar_mp_roundtime) * 60.0, floatround_floor))) show_hudmessage(0, "%L", LANG_SERVER, day) }