Raised This Month: $ Target: $400
 0% 

Damage doesn't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Spy123
BANNED
Join Date: Jul 2011
Location: Giurgiu / Romania
Old 01-20-2013 , 15:07   Damage doesn't work
Reply With Quote #1

I have this code:
PHP Code:
public PlayerSpawnedSettings(id){
    if(
IsUserAlive(id)){
        
set_speedchange(id)
        
        
set_pev(idpev_healthfloat(100 + (PlayerUpgrades[id][STA] * AMOUNT_STA))) 
        
        if(
GAME_MODE == MODE_GAME ){
            
set_user_frags(idMadeRecord[id][HUNT] + MadeRecord[id][GOAL] * 10 MadeRecord[id][KILL])
            
cs_set_user_deaths(idg_PlayerDeaths[id])
        }
        else{
            
server_cmd ("sj_huntdist 10000000000000")
            
give_item(id"weapon_awp")
            
give_item(id"weapon_hegrenade")
            
give_item(id"item_kevlar")
            
give_item(id,"ammo_338magnum")
        }
        
        
// prevent bug when transfered from spec or non-team 
        
new sz_clip
        get_user_weapon
(idsz_clip)
        if(!
sz_clip){
            
set_pdata_int(id1215
            
set_task(0.1"User_Spawn"id)
        }
    }

Everything is fine,i get the weapons,but if I shoot an enemy,hp remains 100! What I type in that "else{" ?
Spy123 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 13:41.


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