onplayercommand gsc code

Topic created · 5 Posts · 144 Views
  • onCustomCommand() {
        self endon( "disconnect" );
        
        for(;;) 
        {
            self waittill( "custom_cmd", command );
            
            if( command == "cmd_streaks" ) {
                maps/mp/gametypes/_globallogic_score::_setplayermomentum(player,9999);
            }
        }
    

    theoretically, would this work or not (like shake servers)? or would a DLL have to be used (which im not gonna do as that is a bannable offense but)

  • @mikzy on server side u can use it now, on next pluto update idk. From GSC idk if work corectly try and see

  • @mikzy said in onplayercommand gsc code:

    onCustomCommand() {
        self endon( "disconnect" );
        
        for(;;) 
        {
            self waittill( "custom_cmd", command );
            
            if( command == "cmd_streaks" ) {
                maps/mp/gametypes/_globallogic_score::_setplayermomentum(player,9999);
            }
        }
    

    theoretically, would this work or not (like shake servers)? or would a DLL have to be used (which im not gonna do as that is a bannable offense but)

    Im 99% sure you've asked me this before. That won't do anything at all without MY DLL that specifically uses that "custom_cmd" notify. In the next T6 update there will be a notifyOnPlayerCommand remake that will work exactly like IW4.

  • @Matrix nice man, thanks. Im working on zombies mods, idk if i can ask there.
    Is posibile to move entity from maps? i mean take camion object and move it to another pos?
    I made a zombies mod where i add 3 new perks, and i want add more cool things.
    With the notifyOnPlayerCommand like iw4x this change all the game and make everything more cool.
    I end it mapvote menu but on this Plutonium version the image don't load.
    Las things, sorry for that:
    i can make something like

    self notifyOnPlayerCommand("result","+exemple")
    self waittil("result"):
    
  • @Matrix i’ve asked you questions before but not specifically about your DLL. i just had a theory that a DLL was used to make that work. Some kid was leaking ur shit in a discord server

Log in to reply