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

Basic SkillPoints v2.0.2 SE with API [FVault & SQL]


Post New Thread Reply   
 
Thread Tools Display Modes
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 08-22-2012 , 05:13   Re: Basic SkillPoints v1.1.2 with API [nVault & SQL]
Reply With Quote #41

nice
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-22-2012 , 08:38   Re: Basic SkillPoints v1.1.2 with API [nVault & SQL]
Reply With Quote #42

Yesterday I did something similiar
http://i.imgur.com/x0Qq3.png
http://i.imgur.com/WBbui.jpg

Last edited by guipatinador; 08-22-2012 at 16:07.
guipatinador is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-22-2012 , 11:56   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #43

Sorry for double post
I update both versions. If you have SQL version, I strongly recommend you to update to v1.1.3

Old,
PHP Code:
formatszTempcharsmaxszTemp ), "SELECT skillpoints FROM %s WHERE authid = '%s'"SQL_TABLEg_szAuthIDid ] ) 
New,
PHP Code:
formatszTempcharsmaxszTemp ), "SELECT skillpoints, level FROM %s WHERE authid = '%s'"SQL_TABLEg_szAuthIDid ] ) 
guipatinador is offline
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 08-22-2012 , 14:15   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #44

el rank deberia ser por points
nick - points - kill - death - HS - BP - BD - 3K - 4K - 5K

PHP Code:
        g_szPointskiller ] += get_pcvar_numg_iWonPointsKill )
        
g_szPointsvictim ] -= get_pcvar_numg_iLostPointsDeath 
=>

PHP Code:
        g_szPointskiller ] += get_pcvar_numg_iWonPointsKill )
        
g_szPointsvictim ] -= get_pcvar_numg_iLostPointsDeath )

        
g_szPoints_Kkiller ] += get_pcvar_numg_iWonPointsKill_kill )
        
g_szPoints_Dvictim ] += get_pcvar_numg_iWonPointsDeath_death 
este metodo sera mas efectivo? .topskill o .toppoints reemplaza el viejo rank /top15

google traductor xD
This method will be most effective? . TOPSKILL or. toppoints replaces the old rank / top15
__________________
kwpd is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-22-2012 , 14:28   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #45

I don't know what you are trying to do.
What is 3K 4K and 5K ?

Last edited by guipatinador; 08-22-2012 at 14:28.
guipatinador is offline
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 08-22-2012 , 14:40   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #46

nick - points - kill - death - HS - BP - BD - KK - KB- KW

the points of first. as ranking
__________________

Last edited by kwpd; 08-22-2012 at 16:14.
kwpd is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-22-2012 , 15:26   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #47

English Only please
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 08-26-2012 , 00:24   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #48

not a bad ideas. adds round loss. -1 points

PHP Code:
    register_event"SendAudio""TerroristsWin""a""2&%!MRAD_terwin" )
    
register_event"SendAudio""CounterTerroristsLoss""a""2&%!MRAD_terwin" )
    
    
register_event"SendAudio""TerroristsLoss""a""2&%!MRAD_ctwin" )
    
register_event"SendAudio""CounterTerroristsWin""a""2&%!MRAD_ctwin" 
PHP Code:
public TerroristsLoss( )
{
    if( 
get_pcvar_numg_iWonPointsTerrorists ) > )
    {
        new 
players32 ]
        new 
num
        
new i
        
        get_players
playersnum"ch" )
        
        for( --
numnum >= 0num-- )
        {
            
playersnum ]
            
            if( 
cs_get_user_team) == CS_TEAM_T && !is_user_ignored] )
                
g_szPoints] -= get_pcvar_numg_iWonPointsTerrorists )
            
            if( 
get_pcvar_numg_iEnableAnnounceOnChat ) > )
                
ColorChatiGREEN"%s^1 Terrorists have loses^3 %i^1 point%s for lose the round"PREFIXget_pcvar_numg_iWonPointsTerrorists ), get_pcvar_numg_iWonPointsTerrorists ) > "s" "" )
        }            
    }
}

public 
CounterTerroristsLoss( )
{
    if( 
get_pcvar_numg_iWonPointsCounterTerrorists ) > )
    {
        new 
players32 ]
        new 
num
        
new j
        
        get_players
playersnum"ch" )
        
        for( --
numnum >= 0num-- )
        {
            
playersnum ]
            
            if( 
cs_get_user_team) == CS_TEAM_CT && !is_user_ignored] )
                
g_szPoints] -= get_pcvar_numg_iWonPointsCounterTerrorists )
            
            if( 
get_pcvar_numg_iEnableAnnounceOnChat ) > )
                
ColorChatjGREEN"%s^1 Counter-Terrorists have loses^3 %i^1 point%s for lose the round"PREFIXget_pcvar_numg_iWonPointsCounterTerrorists ), get_pcvar_numg_iWonPointsCounterTerrorists ) > "s" "" )
        }
    }

kwpd is offline
sidney030235
Junior Member
Join Date: Jun 2012
Old 08-26-2012 , 03:58   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #49

when rank available in nvault version? thx
sidney030235 is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-26-2012 , 08:31   Re: Basic SkillPoints v1.1.3 with API [nVault & SQL]
Reply With Quote #50

Quote:
Originally Posted by kwpd View Post
not a bad ideas. adds round loss. -1 points
You don't need to register a new event for that.

Just use this,
PHP Code:
public TerroristsWin( )
{
    if( 
get_pcvar_numg_iWonPointsTerrorists ) > )
    {
        new 
players32 ]
        new 
num
        
new i
        
        get_players
playersnum"ch" )
        
        for( --
numnum >= 0num-- )
        {
            
playersnum ]
            
            if( 
cs_get_user_team) == CS_TEAM_T && !is_user_ignored] )
                
g_szPoints] += get_pcvar_numg_iWonPointsTerrorists )
                
            else if( 
cs_get_user_team) == CS_TEAM_CT && !is_user_ignored] )
                
g_szPoints] -= points_to_loose
            
            
if( get_pcvar_numg_iEnableAnnounceOnChat ) > )
                
ColorChatiGREEN"%s^1 Terrorists have won^3 %i^1  point%s for winning the round"PREFIXget_pcvar_num(  g_iWonPointsTerrorists ), get_pcvar_numg_iWonPointsTerrorists ) > 1  "s" "" )
        }            
    }
}

public 
CounterTerroristsWin( )
{
    if( 
get_pcvar_numg_iWonPointsCounterTerrorists ) > )
    {
        new 
players32 ]
        new 
num
        
new j
        
        get_players
playersnum"ch" )
        
        for( --
numnum >= 0num-- )
        {
            
playersnum ]
            
            if( 
cs_get_user_team) == CS_TEAM_CT && !is_user_ignored] )
                
g_szPoints] += get_pcvar_numg_iWonPointsCounterTerrorists )
                
            else if( 
cs_get_user_team) == CS_TEAM_T && !is_user_ignored] )
                
g_szPoints] -= points_to_loose
            
            
if( get_pcvar_numg_iEnableAnnounceOnChat ) > )
                
ColorChatjGREEN"%s^1 Counter-Terrorists have won^3 %i^1 point%s for winning the round"PREFIXget_pcvar_numg_iWonPointsCounterTerrorists ), get_pcvar_numg_iWonPointsCounterTerrorists ) > "s" "" )
        }
    }

I will add that in the next version.

Quote:
Originally Posted by sidney030235 View Post
when rank available in nvault version? thx
Rank/top15 is only available in SQL version.
I don't know how to add that in nvault (also don't know if is possible).

Last edited by guipatinador; 08-26-2012 at 08:37.
guipatinador is offline
Reply


Thread Tools
Display Modes

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 22:23.


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