Raised This Month: $ Target: $400
 0% 

(+) frag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-27-2013 , 05:52   (+) frag
Reply With Quote #1

PHP Code:
public event_death()
{
    new 
Victim read_data(2);
    
    if (
Vipim[Victim])
    {
        new 
players[32], pnumid;
        
get_players(playerspnum"ae""CT");
        
        for (new 
ipnumi++)
        {
            
id players[i];
            
            
user_kill(id);
            
set_user_frags(idget_user_frags(id) +1)
        }
    }

all ct killin with
PHP Code:
user_kill(id); 
but, (-) scoreboard is being processed. I used it
PHP Code:
set_user_frags(idget_user_frags(id) +1
but, doesn't work.
__________________
Erdener is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-27-2013 , 05:56   Re: (+) frag
Reply With Quote #2

Or you could use user_kill( id, 1 ) and then you wouldn't need to edit frags.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 02-27-2013 , 07:50   Re: (+) frag
Reply With Quote #3

exactly
( 0 - remove frag , 1 - do nothing )
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
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 21:45.


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