Results 1 to 10 of 20

Thread: self.name help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,018
    Thanks
    2,110
    Thanked 1,086 Times in 753 Posts
    No need to hack the client, the server is enough (aka libcod).

    The player vote kick menu is sending ClientCommand's, which can be pre-processed and then ignored (so no vote will be called, just "return" out of callback).

    Code for _callbacksetup.gsc:

    PHP Code:
    CodeCallback_PlayerCommand(args)
    {
        
    output "";
        for (
    i=0i<args.sizei++)
            
    output += args[i] + ", ";
        
        
    printf("PLAYER COMMAND! message=\"%\"\n"output);
        
    //self iprintlnbold("you wrote: " + output);
        
    args fixChatArgs(args);

        
    // ...
        // ...
        // ... 
    Output:

    Code:
    PLAYER COMMAND! message="mr, 32, 1, axis, "
    PLAYER COMMAND! message="mr, 32, 3, kar98k_mp, "
    PLAYER COMMAND! message="mr, 32, 0, callvote, "
    PLAYER COMMAND! message="callvote, tempBanUser, kung, "
    Whole code here: http://killtube.org/showthread.php?1...-B3!%29&p=4374
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    guiismiti (13th September 2014)

Posting Permissions

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