Raised This Month: $ Target: $400
 0% 

little help with Respawn code.. (for shop)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EpicFail.
Senior Member
Join Date: May 2010
Old 06-17-2010 , 15:33   little help with Respawn code.. (for shop)
Reply With Quote #1

look i have a problem with respawn
it no read the Command "ExecuteHamB"

here my code
PHP Code:
case 13// Respawn
        
{
            if(!
is_user_alive(id)) {
                
client_print_color0DontChange"^4[ Shop] ^1You need to be alive!");
                return 
PLUGIN_HANDLED;
            }
            if(
userRespawn[id] > 0) {
                
client_print_color0DontChange"^4[ Shop] ^1You already own this item!");
                return 
PLUGIN_HANDLED;
            }
            if(
get_pcvar_num(allowRespawn) == 0) {
                
client_print_color0DontChange"^4[Shop] ^1This item is disabled.");
                return 
PLUGIN_HANDLED;
            }
    
            new 
money fm_get_user_money(id);
            new 
cost get_pcvar_num(Respawncost);
    
            if(
money cost || money == cost) {
                
fm_get_user_money(idmoney cost);
                
ExecuteHamB(Ham_CS_RoundRespawn,id); 
                
userRespawn[id]++;
                
client_print_color0DontChange"^4[Shop] ^1You purchased ^3Respawn.");
            } else {  
                
client_print_color0DontChange"^4[Shop] ^1You need more ^4money ^1to buy this!");
            } 
            
        } 
How i can fix this..
please some help
and sorry for my bad english
EpicFail. 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 14:42.


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