Raised This Month: $ Target: $400
 0% 

[help] How can i do this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-18-2011 , 12:12   Re: [help] How can i do this?
Reply With Quote #3

Quote:
Originally Posted by drekes View Post
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_RoundRespawnid);
            
cs_set_user_money(idmoney -cost)
        }
    
        else
        {
            
client_print(idprint_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_RoundRespawnid);

// 2
ExecuteHamB(Ham_Spawnid);

// 3
set_pev(idpev_deadflagsDEATH_RESPAWNABLE);
dllfunc(DLLFunc_Thinkid
</span></span>
Tnx
2reason2kill is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode