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

[CSGO] Level saver/changer for mg_100traps_v4_1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AsDiKa01
New Member
Join Date: Oct 2018
Plugin ID:
6290
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 10-04-2018 , 10:33   [CSGO] Level saver/changer for mg_100traps_v4_1
    Reply With Quote #1

    This plugin is for this map: https://steamcommunity.com/sharedfil.../?id=510119667
    It is recording the reached level in SQL and you are able to change between the reached levels.
    You can use the goto say command for changing levels or you can just type in chat "goto 10".

    You will need to create traps table in SQL:
    PHP Code:
    CREATE TABLE `traps` (
      `
    steamidvarchar(20NOT NULL,
      `
    currentLeveltinyint(4NOT NULL,
      `
    highestLeveltinyint(4NOT NULL,
      
    UNIQUE KEY `steamid` (`steamid`)
    ENGINE=InnoDB DEFAULT CHARSET=latin1
    This is my first plugin and i'm sure that it has bad solutions or bugs so just tell me if you find anything.

    One known bad solution is the "level" after completing level 100. I cannot prevent the music after it, so I hope you have any idea for this.
    Attached Files
    File Type: sp Get Plugin or Get Source (traps.sp - 949 views - 43.0 KB)

    Last edited by AsDiKa01; 10-04-2018 at 10:37.
    AsDiKa01 is offline
    zipcore
    Veteran Member
    Join Date: Mar 2010
    Location: m_flZipcore
    Old 10-05-2018 , 20:10   Re: [CSGO] Level saver/changer for mg_100traps_v4_1
    Reply With Quote #2

    Wouldn't it be better to write a plugin which allows you to set zones on any map?
    __________________
    zipcore is offline
    Kamizun
    AlliedModders Donor
    Join Date: May 2015
    Location: Portugal
    Old 10-06-2018 , 15:39   Re: [CSGO] Level saver/changer for mg_100traps_v4_1
    Reply With Quote #3

    Actually adding 100 zones its a pain, so I dont know what's better
    Kamizun is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 10-06-2018 , 17:34   Re: [CSGO] Level saver/changer for mg_100traps_v4_1
    Reply With Quote #4

    Wow you added 101 levels manually to the plugin, really you was so bored?

    I think that use a zones plugin like my plugin for add 101 zones instead of add all manually to the code would have required less time.

    Anyway nice job, add 101 zones has merit.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 10-06-2018 at 17:40.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    zipcore
    Veteran Member
    Join Date: Mar 2010
    Location: m_flZipcore
    Old 10-07-2018 , 12:10   Re: [CSGO] Level saver/changer for mg_100traps_v4_1
    Reply With Quote #5

    Quote:
    Originally Posted by Franc1sco View Post
    Wow you added 101 levels manually to the plugin, really you was so bored?

    I think that use a zones plugin like my plugin for add 101 zones instead of add all manually to the code would have required less time.

    Anyway nice job, add 101 zones has merit.
    yep, but sharing a set of zones for an existing plugin would have done the job too
    so much sisyphus work
    __________________
    zipcore 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 13:43.


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