Raised This Month: $51 Target: $400
 12% 

Solved set_user_frags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 02-08-2021 , 16:18   set_user_frags
Reply With Quote #1

hello guys. i want to set players frags at event round start. this is my code:

PHP Code:
    if(my_data_2_store[0] == 16)
    {
        
get_players(iPlayersiNum)
        for (new 
0iNumi++)
        {
            
iPlayer iPlayers[i]
            
cs_set_user_deaths(iPlayeriDeaths[i])
            
fm_set_user_frags(iPlayeriFrags[i])
        }
        
my_data_2_store[1]
        
my_data_2_store[1] = my_data_2_store[2]
        
my_data_2_store[2] = x    
    

the problem is it will show 0 until the player make 1 frag, then it will show his saved frags + frag that he made. how could i avoid that 0 ? i want to set his frags from the round start not when he's making a frag. i tried with cs_set_user_frags but same result

Last edited by lexzor; 02-09-2021 at 10:51.
lexzor 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 03:58.


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