Results 1 to 12 of 12

Thread: ResetScore

  1. #1
    Junior Member Array
    Join Date
    Jun 2015
    Location
    Milano
    Karma
    0

    Default ResetScore

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <colorchat>
    #include <fun>

    #define PLUGIN "Reset stats"
    #define VERSION "1.0"
    #define AUTHOR "Sn!ff3r"

    public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /rs", "cmd_reset")
    register_clcmd("say_team /rs", "cmd_reset")
    }
    public cmd_reset(id)
    {
    cs_set_user_deaths(id, 0)
    set_user_frags(id,0)
    ColorChat(id,RED,"^x01[^x04LS^x01]^x01: Reset your score in 0")
    }

    Hello who can help me i can reset score one time need 2 write /rs for worked where is problem ?

  2. #2
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    4

    Default

    Please explain your problem better.
    P.S. Next time put the code in [code] or [php] tags.
    Ako imate ideju za plugin, pustite je na PM obzirom da mi se cesto desava da sam dokon i da mi se pravi nesto, a nemam ideja.
    Isto tako ako nije jasno nesto oko TS3 permisija/discord-a pustite PM (Nemojte ocekivati da cu napraviti bilo sta umesto vas vec mogu samo da pojasnim).
    P.S. Nemoj smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.

  3. #3
    Junior Member Array
    Join Date
    Jun 2015
    Location
    Milano
    Karma
    0

    Default

    Quote Originally Posted by SkazzY View Post
    Please explain your problem better.
    P.S. Next time put the code in [code] or [php] tags.

    Sory , if i have -1 my score i write /rs , my score countinue to stay -1 when again /rs now my score reset i want one score
    used server from kgb hosting , simple message

  4. #4
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    4

    Default

    This should work
    PHP Code:
    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <colorchat>
    #include <fun>

    #define PLUGIN "Reset stats"
    #define VERSION "1.0"
    #define AUTHOR "Sn!ff3r"

    public plugin_init() {
        
    register_plugin(PLUGINVERSIONAUTHOR)

        
    register_clcmd("say /rs""cmd_reset")
        
    register_clcmd("say_team /rs""cmd_reset")
    }
    public 
    cmd_reset(id)
    {
        
    set_user_frags(id0)
        
    cs_set_user_deaths(id0)
        
    ColorChat(id,RED,"^x01[^x04LS^x01]^x01: Reset your score in 0")

    Last edited by SkazzY; 11-03-2017 at 23:14.
    Ako imate ideju za plugin, pustite je na PM obzirom da mi se cesto desava da sam dokon i da mi se pravi nesto, a nemam ideja.
    Isto tako ako nije jasno nesto oko TS3 permisija/discord-a pustite PM (Nemojte ocekivati da cu napraviti bilo sta umesto vas vec mogu samo da pojasnim).
    P.S. Nemoj smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.

  5. #5
    Member Array
    Join Date
    Jan 2017
    Location
    Proffessional Coder.
    Age
    33
    Karma
    0

    Default

    Try this:

    PHP Code:
    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <colorchat>
    #include <fun>


    public plugin_init()
    {
        
    register_plugin("RS Score""1.1""Editor Nexon#")

        
    register_clcmd("say /rs""resetuj")

    }
    public 
    resetuj(id)
    {
        
    cs_set_user_deaths(id0)

        
    set_user_frags(id,0)

        
    cs_set_user_deaths(id0)

        
    set_user_frags(id,0)


        
    ColorChat(id,RED,"^x01[^x04LS^x01]^x01: You are successfully, restarted your score to 0.")

        return 
    PLUGIN_CONTINUE;



    Kontakt:
    Ovde na forumu: [Klik]
    Na Facebook: [Klik]
    E-mail: nexon.gaming97@gmail.com

  6. #6
    Moderator Array klipica's Avatar
    Join Date
    Apr 2010
    Location
    lk-net.com
    Karma
    24

    Default

    Prvo set_user_frags() pa cs_set_user_deaths(), nema razloga da se poziva dva puta.
    Code:
    #YoMama {
        width: 200%;
        overflow: visible;
    }

  7. #7
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    4

    Default

    @Klippy Editovao post
    @Nexon Ajd sto sam sebe ubedjujes da znas nesto, ali sto uzimas tudje kodove i samo stavis sebe kao autora .
    Last edited by SkazzY; 11-03-2017 at 23:19.
    Ako imate ideju za plugin, pustite je na PM obzirom da mi se cesto desava da sam dokon i da mi se pravi nesto, a nemam ideja.
    Isto tako ako nije jasno nesto oko TS3 permisija/discord-a pustite PM (Nemojte ocekivati da cu napraviti bilo sta umesto vas vec mogu samo da pojasnim).
    P.S. Nemoj smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.

  8. #8
    Moderator Array Megastorm's Avatar
    Join Date
    Sep 2011
    Location
    Tokyo, Japan
    Age
    21
    Karma
    31

    Default

    Quote Originally Posted by SkazzY View Post
    @Klippy Editovao post
    @Nexon Ajd sto sam sebe ubedjujes da znas nesto, ali sto uzimas tudje kodove i samo stavis sebe kao autora .
    Khm...
    Bolje da si rekao Own3d...

  9. #9
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    4

    Default

    A kad bi krenuo @Nexon/Own3d... pola ekrana lista svih njegovih profila, ovako najlakse, svi vide na koga se misli...
    Ako imate ideju za plugin, pustite je na PM obzirom da mi se cesto desava da sam dokon i da mi se pravi nesto, a nemam ideja.
    Isto tako ako nije jasno nesto oko TS3 permisija/discord-a pustite PM (Nemojte ocekivati da cu napraviti bilo sta umesto vas vec mogu samo da pojasnim).
    P.S. Nemoj smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.

  10. #10
    Senior Member Array
    Join Date
    Jun 2015
    Location
    Belgrade
    Karma
    4

    Default

    Quote Originally Posted by SkazzY View Post
    @Nexon Ajd sto sam sebe ubedjujes da znas nesto, ali sto uzimas tudje kodove i samo stavis sebe kao autora .
    Ja se divim njegovom pravopisu, i na srpskom sa onim zarezima, a ocigledno ni sa engleskim ne stoji najbolje :S

    "You are successfully, restarted your score to 0."

  11. #11
    Junior Member Array
    Join Date
    Jun 2015
    Location
    Milano
    Karma
    0

    Default

    skazzy can i use any color green and white exist other orange or yellow if exist can you tell how to use ?

  12. #12
    Senior Member Array
    Join Date
    Aug 2013
    Location
    Forbidden Forest
    Karma
    4

    Default

    Basically you can use green, yellow and red/blue/grey/team_color (You can use only one of these in a single message), you can see template here :
    Code:
    ColorChat(id, RED/BLUE/GREY/TEAM_COLOR, "^1This will be yellow(Default color), ^3This will be RED/BLUE/GREY/TEAM_COLOR defined by 2nd argument, ^4this will be green")
    Ako imate ideju za plugin, pustite je na PM obzirom da mi se cesto desava da sam dokon i da mi se pravi nesto, a nemam ideja.
    Isto tako ako nije jasno nesto oko TS3 permisija/discord-a pustite PM (Nemojte ocekivati da cu napraviti bilo sta umesto vas vec mogu samo da pojasnim).
    P.S. Nemoj smarati/hejtovati obzirom da to niko ne voli a ja licno cu samo da vas kuliram.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •