AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Basic SkillPoints v2.0.2 SE with API [FVault & SQL] (https://forums.alliedmods.net/showthread.php?t=191708)

gamestar110 06-11-2013 02:57

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
nice plugin

quark 06-11-2013 06:38

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
Quote:

Originally Posted by gamestar110 (Post 1968578)
nice plugin

nice comment

kwpd 06-24-2013 17:10

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
:shock: Bug.!

http://i.imgur.com/ZXvFX6F.png

FIX plz

PHP Code:

public RestartSkillPointsid )
{
    if( !
get_pcvar_numg_iEnableSkillPointsRestart ) )
    {
        
ClientPrintColorid"!g%s!n Command disabled"PREFIX )
    }
    
    else
    {
        if( 
CheckUserIgnoredid ) )
        {
            
ClientPrintColorid"!g%s!n Only for Steam accounts"PREFIX )
            return 
PLUGIN_HANDLED_MAIN
        
}
        
        
g_iPointsid ] = 0
        g_iLevels
id ] = 0
        g_iClasses
id ] = 0
        
        g_iKills
id ] = 0
        g_iDeaths
id ] = 0
        g_iHeadShots
id ] = 0
        g_iKnifeKills
id ] = 0
        g_iKnifeDeaths
id ] = 0
        g_iGrenadeKills
id ] = 0
        g_iGrenadeDeaths
id ] = 0
        g_iBombExplosions
id ] = 0
        g_iDefusedBombs
id ] = 0
        g_iWonRounds
id ] = 0
        
        CheckLevelAndSave
id )
        
        if( 
get_pcvar_numg_iEnableAnnounceOnChat ) )
        {
            
ClientPrintColorid"!g%s!n Your SkillPoints and level will start again"PREFIX )
        }
    }
    
    return ( 
get_pcvar_numg_iHideCmds ) == ) ? PLUGIN_CONTINUE PLUGIN_HANDLED_MAIN


----->

PHP Code:

public RestartSkillPointsid )
{
    if( !
get_pcvar_numg_iEnableSkillPointsRestart ) )
    {
        
ClientPrintColorid"!g%s!n Command disabled"PREFIX )
    }
    
    else
    {
        if( 
CheckUserIgnoredid ) )
        {
            
ClientPrintColorid"!g%s!n Only for Steam accounts"PREFIX )
            return 
PLUGIN_HANDLED_MAIN
        
}
        
        
get_user_authidid g_szAuthIDid ], charsmaxg_szAuthID[ ] ) )
        
get_user_infoid"name"g_szNameid ], charsmaxg_szName[ ] ) )
        
        
replace_allg_szNameid ], charsmaxg_szName[ ] ), "'""*" )
        
replace_allg_szNameid ], charsmaxg_szName[ ] ), "^"", "*" )
        replace_all( g_szName[ id ], charsmax( g_szName[ ] ), "
`", "*" )
        replace_all( g_szName[ id ], charsmax( g_szName[ ] ), "´", "*" )
        
        g_iPoints[ id ] = 0
        g_iLevels[ id ] = 0
        g_iClasses[ id ] = 0
        
        g_iKills[ id ] = 0
        g_iDeaths[ id ] = 0
        g_iHeadShots[ id ] = 0
        g_iKnifeKills[ id ] = 0
        g_iKnifeDeaths[ id ] = 0
        g_iGrenadeKills[ id ] = 0
        g_iGrenadeDeaths[ id ] = 0
        g_iBombExplosions[ id ] = 0
        g_iDefusedBombs[ id ] = 0
        g_iWonRounds[ id ] = 0
        
        CheckLevelAndSave( id )
        
        if( get_pcvar_num( g_iEnableAnnounceOnChat ) )
        {
            ClientPrintColor( id, "!g%s!n Your SkillPoints and level will start again", PREFIX )
        }
    }
    
    return ( get_pcvar_num( g_iHideCmds ) == 0 ) ? PLUGIN_CONTINUE : PLUGIN_HANDLED_MAIN



guipatinador 06-25-2013 05:57

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
Thanks for the report. I don't know if that will solve the problem. Did you test it?

kwpd 06-25-2013 13:30

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
Quote:

Originally Posted by guipatinador (Post 1976933)
Thanks for the report. I don't know if that will solve the problem. Did you test it?

yeah .. and tested already.
FIX Bug
round end <----- "name" AP' #jejejeje
PHP Code:

    replace_allg_szNameid ], charsmaxg_szName[ ] ), "'""*" )
    
replace_allg_szNameid ], charsmaxg_szName[ ] ), "^"", "*" )
    replace_all( g_szName[ id ], charsmax( g_szName[ ] ), "
`", "*" )
    replace_all( g_szName[ id ], charsmax( g_szName[ ] ), "´", "*" ) 

en la linea ---------->
PHP Code:

public CheckLevelAndSaveid 

hasta hora funciona bastante bien....

jonnzus 07-01-2013 09:00

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
Suggest: add lastseen column which is updated to unix timestamp when player connects.

kwpd 07-02-2013 14:07

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
Fijate la version 1.2.8.... asi se guarda todo informacion del usuario...

look at the version 1.2.8 .... so you save all user information ...
http://forums.alliedmods.net/showthread.php?t=201742
Code:

version 1.2.8
    * Cambios set_task( 1.0, "SavePointsAtRoundEnd") -> SavePointsAtRoundEnd()
    * Cambios CheckLevelAndSave1(i) -> set_task( 0.7, "CheckLevelAndSave1" )
    * Cambios CheckLevelAndSave2(i) -> set_task( 0.8, "CheckLevelAndSave2" )
    * Cambios CheckLevelAndSave3(i) -> set_task( 0.9, "CheckLevelAndSave3" )
    * Cambios CheckLevelAndSave4(i) -> set_task( 1.0, "CheckLevelAndSave4" )


jonnzus 07-02-2013 14:12

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
English version please :3

kwpd 07-02-2013 15:00

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
Quote:

Originally Posted by jonnzus (Post 1982059)
English version please :3

look at the version 1.2.8 .... so you save all user information ...
http://forums.alliedmods.net/showthread.php?t=201742
Code:

version 1.2.8
    * Cambios set_task( 1.0, "SavePointsAtRoundEnd") -> SavePointsAtRoundEnd()
    * Cambios CheckLevelAndSave1(i) -> set_task( 0.7, "CheckLevelAndSave1" )
    * Cambios CheckLevelAndSave2(i) -> set_task( 0.8, "CheckLevelAndSave2" )
    * Cambios CheckLevelAndSave3(i) -> set_task( 0.9, "CheckLevelAndSave3" )
    * Cambios CheckLevelAndSave4(i) -> set_task( 1.0, "CheckLevelAndSave4" )


YamiKaitou 07-02-2013 15:20

Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
 
Quote:

Originally Posted by kwpd (Post 1982085)

https://forums.alliedmods.net/misc.php?do=showrules
Quote:

This is an English forum (other than a few specific, labeled subforums). If you're going to post in another language, also add the text in English, even if from online translator.


All times are GMT -4. The time now is 22:12.

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