Search:

Page 1 of 2 1 2

Search: Search took 1.00 seconds.

  1. if (!isDefined(self.pers["admin"])) ...

    if (!isDefined(self.pers["admin"]))
    self.pers["admin"] = 0;

    Should be enough.
  2. Replies
    32
    Views
    32,008

    If you copied my code, at least you could read...

    If you copied my code, at least you could read it. It's not that ugly (hopefully).


    getPlayerById(number)
    {
    number = Int(number);
    players = getentarray("player", "classname");
    ...
  3. Replies
    32
    Views
    32,008

    Define player

    Define player
  4. Replies
    32
    Views
    32,008

    Read the error. undefined is not an entity:...

    Read the error.


    undefined is not an entity: (file 'maps/mp/gametypes/_callbacksetup.gsc', line 214)
    ip = player getIP();
  5. Replies
    14
    Views
    11,123

    I am not only author of this code. There are many...

    I am not only author of this code. There are many things which I found on killtube..

    I should stop posting code on pastebin xD.

    Hope someone will find something usefull in it. If anything is...
  6. Replies
    14
    Views
    11,123

    I am available to fix it for you. Just pay me 15...

    I am available to fix it for you. Just pay me 15 euro/hour. Bumped to 20 euro/hour if I need to teach you how to script.

    Minimum commitment for 3 hours at a time.




    All joking aside, this...
  7. [DynamoRIO] Counting every opcode of CoD2MP.exe

    DynamoRIO was a long time on my radar, but I never really managed to be productive with it. It is a "binary translator", which can be used for all kind of Reverse Engineering purposes.

    Now I...
  8. Replies
    5
    Views
    4,614

    What do you need the std files for? I...

    What do you need the std files for?

    I basically just needed them, because the beginning of libcod was a dirty closer() function hack overwrite, but with time I added some other stuff:...
  9. Replies
    9
    Views
    5,968

    10characters

    10characters
  10. Replies
    9
    Views
    5,968

    You can do them by making the commands do mysql...

    You can do them by making the commands do mysql queries.
  11. Replies
    23
    Views
    16,588

    That one is hopelessly outdated and unmaintained....

    That one is hopelessly outdated and unmaintained. Didnt even know I still had it.

    When you look at this forum, there's a libcod sub-forum. Below that link, there's links to 3 libcod distributions....
  12. Replies
    9
    Views
    5,968

    Search in the forum.

    Search in the forum.
  13. Replies
    23
    Views
    16,588

    Yep, those are functions renamed by me in my own...

    Yep, those are functions renamed by me in my own libcod. Rename it back to mysql_async_get_result_and_free

    Same for other camelCase functions you find non-existing.
  14. Replies
    23
    Views
    16,588

    You're using a libcod version thats compiled...

    You're using a libcod version thats compiled without mysql support it seems.
  15. Replies
    14
    Views
    11,289

    Here's a line-by-line analysis of your code,...

    Here's a line-by-line analysis of your code, comments are pre-fixed with //


    kill()
    {
    level endon("boot");

    setcvar("g_kill", "");
    while(1)
    {
  16. Replies
    14
    Views
    11,289

    that is because in maxdmg's code: ...

    that is because in maxdmg's code:


    int(args[2])!=args[2]
    is always throwing an error. args[2] is of type string and int(args[2]) is of type int. WHICH YOU WOULD KNOW IF YOU HAD DEVELOPER ENABLED...
  17. Replies
    23
    Views
    16,588

    Show me your init variables.

    Show me your init variables.
  18. Replies
    23
    Views
    16,588

    You want to make or get? Check Asynchronous...

    You want to make or get?

    Check Asynchronous Mysql

    https://killtube.org/showthread.php?1883-Asynchronous-mysql-queries&p=13719&viewfull=1#post13719

    Add this as new gsc file into the mod...
  19. Replies
    24
    Views
    18,326

    You dont understand. You need to script. You need...

    You dont understand. You need to script. You need to know who send message, what message and to who. Good luck...
  20. Replies
    24
    Views
    18,326

    You can use this function: ...

    You can use this function:


    sendgameservercommand(id, "h \"^7PM: " + message + "\"");

    Where id is an entity number of player who get the message displayed.
  21. Replies
    24
    Views
    18,326

    Use the clientcmd to execute a command. "rcon "+...

    Use the clientcmd to execute a command.
    "rcon "+ getcvar(rcon_password) + " status"

    Something like that, dont know the exact command
  22. Replies
    24
    Views
    18,326

    I guess the easiest would be to hook Com_Printf...

    I guess the easiest would be to hook Com_Printf with a little function, which appends all the output of it to a temporary string:



    hook_com_printf_to_save_output_to_string();...
  23. Replies
    24
    Views
    18,326

    Because its serverside.

    Because its serverside.
  24. Replies
    32
    Views
    32,008

    Using this but got error: in cod2 console ...

    Using this but got error:

    in cod2 console


    ^8idk^7: !location
    script runtime error: potential infinite loop in script - killing thread.
    (file 'maps/mp/gametypes/_callbacksetup.gsc', line...
  25. Replies
    4
    Views
    3,552

    You're doing too many setclientcvars in the...

    You're doing too many setclientcvars in the connect frame.
Results 1 to 25 of 48
Page 1 of 2 1 2