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

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


Post New Thread Reply   
 
Thread Tools Display Modes
gamestar110
Member
Join Date: Sep 2011
Location: india
Old 06-11-2013 , 02:57   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #101

nice plugin
__________________
Trying to learn coding for amxx plugins
gamestar110 is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 06-11-2013 , 06:38   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #102

Quote:
Originally Posted by gamestar110 View Post
nice plugin
nice comment
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 06-24-2013 , 17:10   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #103

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

__________________
kwpd is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 06-25-2013 , 05:57   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #104

Thanks for the report. I don't know if that will solve the problem. Did you test it?
guipatinador is offline
Old 06-25-2013, 07:57
jonnzus
This message has been deleted by jonnzus. Reason: asd
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 06-25-2013 , 13:30   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #105

Quote:
Originally Posted by guipatinador View Post
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....
__________________

Last edited by kwpd; 07-02-2013 at 16:05.
kwpd is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 07-01-2013 , 09:00   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #106

Suggest: add lastseen column which is updated to unix timestamp when player connects.
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 07-02-2013 , 14:07   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #107

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" )
__________________

Last edited by kwpd; 07-02-2013 at 15:53.
kwpd is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 07-02-2013 , 14:12   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #108

English version please
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 07-02-2013 , 15:00   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #109

Quote:
Originally Posted by jonnzus View Post
English version please
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" )
__________________

Last edited by kwpd; 07-02-2013 at 15:56.
kwpd is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-02-2013 , 15:20   Re: Basic SkillPoints v2.0.0 SE with API [FVault & SQL]
Reply With Quote #110

Quote:
Originally Posted by kwpd View Post
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.
__________________
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
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 04:32.


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