Page 1 of 1

Del hp

Posted: 2011 Dec 28 17:09
by life55
Sveiki man reikia plugino .SMA failiuko kuris leidzia redaguoti zmogaus esamas hp. Pvz padaryti kad tik atsirespawines zmogus turetu 120hp ir t.t.+KARMA garantuota uz sma failiuka.

Re: Del hp

Posted: 2011 Dec 28 17:26
by newb

Code: Select all

#include <amxmodx>#include <fun>#include <hamsandwich> new pSpawnHealth public plugin_init() {    RegisterHam(Ham_Spawn, "player", "hook_PlayerSpawn", 1)        pSpawnHealth = register_cvar("spawn_hp", "120")} public hook_PlayerSpawn(id) {        if(is_user_alive(id))        set_user_health(id, get_pcvar_num(pSpawnHealth))    }

Re: Del hp

Posted: 2011 Dec 28 18:33
by life55
Dekui +KARMA