Raised This Month: $ Target: $400
 0% 

Ignoring (id) from a command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Speedy'
Member
Join Date: Jan 2009
Old 05-12-2010 , 06:23   Ignoring (id) from a command
Reply With Quote #1

This is for the Deathrace Mod. Original code, it executes user_silentkill to kill all the players when someone wins the round (the mod it's played only as a Counter-Terrorist), but i founded the Round Terminator plugin wich can make the round terminate without killing all the players. The problem is, how to ignore the player who wins the deathrace (Pressing the finish button, last man alive) so the command user_silentkill will have effect only the rest of the players? Heres the part of the code wich i'm talking about:
PHP Code:
    new Players[32
    new 
playerCountiplayerdr
    get_players
(PlayersplayerCount"a"
    
    for (
i=0i<playerCounti++) 
        {
        
playerdr Players[i]
        new 
frags get_pcvar_num(dr_winfrags)
        
set_user_frags(idget_user_frags(id) + frags) - how to ignore him(idfrom the bellow task
        user_silentkill
(playerdr) - this kills the players when the button it's pushed
    }

P.S I've already asked in the Mod topic, but the author didn't knew a method.
__________________
Sorry for my English
Speedy' 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:40.


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