Raised This Month: $ Target: $400
 0% 

give exp when ct or t win


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-23-2014 , 19:18   Re: give exp when ct or t win
Reply With Quote #1

First we register the logevents for each team winning:
PHP Code:
    register_logevent("CTwin"6"3=CTs_Win""3=All_Hostages_Rescued")
    
register_logevent("Twin" 6"3=Terrorists_Win""3=Target_Bombed"
Then we loop trough the players in the team in each function, and add their eXP. It's easy:
PHP Code:
public CTwin()
{
    new 
players[32], num
    get_players
(playersnum"eh""CT")
    
    for(new 
inumi++)
    {
        
gExp[players[i]] += //This is the EXP you give for winning CT team!
    
}
}

public 
Twin()
{
    new 
players[32], num
    get_players
(playersnum"eh""TERRORIST")
    
    for(new 
inumi++)
    {
        
gExp[players[i]] += //This is the EXP you give for winning CT team!
    
}

P.S.: As far as you don't understand of pawn, this topic should be in Request section - you want someone to do it for you.
__________________

Last edited by Flick3rR; 06-24-2014 at 08:33.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
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:14.


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