 |
|
Senior Member
|

06-18-2011
, 12:12
Re: [help] How can i do this?
|
#3
|
Quote:
Originally Posted by drekes
PHP Code:
if(!is_user_alive(id)) { new money = cs_get_user_money(id) new cost = get_pcvar_num(Cost); if(money >= cost) { // cs_user_spawn(id) ExecuteHamB(Ham_CS_RoundRespawn, id); cs_set_user_money(id, money -cost) } else { client_print(id, print_chat,"You havent Enough money To buy this item") } }
To spawn a player, you can use 3 good ways afaik.
PHP Code:
// 1 ExecuteHamB(Ham_CS_RoundRespawn, id);
// 2 ExecuteHamB(Ham_Spawn, id);
// 3 set_pev(id, pev_deadflags, DEATH_RESPAWNABLE); dllfunc(DLLFunc_Think, id)
</span></span>
|
Tnx
|
|
|
|