Raised This Month: $ Target: $400
 0% 

[help] How can i do this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-18-2011 , 07:40   Re: [help] How can i do this?
Reply With Quote #1

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_deadflagsDEAD_RESPAWNABLE);
dllfunc(DLLFunc_Thinkid
</span></span>
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 06-18-2011 at 13:48.
drekes is offline
Send a message via MSN to drekes
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-18-2011 , 12:12   Re: [help] How can i do this?
Reply With Quote #2

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
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 06-18-2011 , 12:38   Re: [help] How can i do this?
Reply With Quote #3

DEATH_RESPAWNABLE -> DEAD_RESPAWNABLE
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-18-2011 , 13:48   Re: [help] How can i do this?
Reply With Quote #4

Quote:
Originally Posted by nikhilgupta345 View Post
DEATH_RESPAWNABLE -> DEAD_RESPAWNABLE
Nice catch, fixed
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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