Search:

Page 1 of 24 1 2 3 4

Search: Search took 1.00 seconds.

  1. Replies
    14
    Views
    6,735

    Bad idea. The level var is also cleaned (except...

    Bad idea. The level var is also cleaned (except for level.game array) on round restart. Furthermore, since players go through the "playerconnecting" callback when the round restarts, their money gets...
  2. Replies
    14
    Views
    6,735

    Store it in player.pers["something"] variable,...

    Store it in player.pers["something"] variable, load it back on playerconnect if it's defined. player.pers array gets stored over multiple rounds.
  3. Replies
    62
    Views
    15,004

    You're not properly retrieving the stuff from the...

    You're not properly retrieving the stuff from the database. You're storing the "result" pointer (!) in the self.stats array, which is a seemingly random number. Instead use the result to fetch_row.
  4. Replies
    62
    Views
    15,004

    getrankname(rank) { if(rank >= 0 && rank

    getrankname(rank)
    {
    if(rank >= 0 && rank < game["rankname"].size)
    self.hud_rank setText(game["rankname"][rank]);
    }


    ranknamesinit()
    {
    game["rankname"] = [];
  5. Replies
    3
    Views
    978

    You need to precache them in...

    You need to precache them in maps/mp/gametypes/_quickmessages.gsc

    Then you need to handle the input from them at the bottom of maps/mp/gametypes/_menus.gsc and send that along to the...
  6. Replies
    62
    Views
    15,004

    Change updatePlayerScoreHUD() {...

    Change



    updatePlayerScoreHUD()
    {
    if(isDefined(self.hud_deaths))
    deaths = self getstat("deaths");
    self.hud_deaths setValue(deaths);
    }
  7. Replies
    4
    Views
    401

    Is this thing threaded? Why do you need the...

    Is this thing threaded?

    Why do you need the wait in a pre-game thing? Just resettimeout;
  8. Thread: Libcod cod2 ss

    by IzNoGoD
    Replies
    3
    Views
    295

    Black screenshots supposedly happen when you're...

    Black screenshots supposedly happen when you're using anti-aliasing on the client. Try turning that off.
  9. Replies
    3
    Views
    258

    Is your log file being parsed correctly? Logsync...

    Is your log file being parsed correctly? Logsync should be 2 iirc.

    Furthermore, if all you want is !nextmap and !time, it's almost trivial to code something up to work inside cod2, especially with...
  10. Replies
    6
    Views
    1,892

    Same quality as scaleway/online.net. Three good...

    Same quality as scaleway/online.net. Three good options in EU are hetzner, ovh (or one of their subbrands) and a third brand I cannot remember right now, but which was way more expensive than the...
  11. Replies
    6
    Views
    1,892

    For always-on protection of very decent size,...

    For always-on protection of very decent size, you'll be stuck with OVH, specifically their GAME line. SoYouStart is an OVH brand which is a tad cheaper.

    For ddos protection that kicks in after a...
  12. Replies
    4
    Views
    694

    Look how SD does it by default. The...

    Look how SD does it by default.

    The player-based .pers variable is not reset on a soft-reset (map_restart(true);), so store anything of value in there and retrieve it after the variable you want...
  13. Replies
    4
    Views
    1,529

    Libcod has it patched out. Setting...

    Libcod has it patched out.

    Setting sv_allowdownload to 0 is a workaround. Use wwwdl instead to allow people to still download something (but ofc don't expose any config files through your www...
  14. Replies
    4
    Views
    694

    Store scores in the .pers["something"] variable,...

    Store scores in the .pers["something"] variable, and retrieve on game start.
  15. Replies
    6
    Views
    4,209

    OBS.

    OBS.
  16. Replies
    4
    Views
    2,081

    iirc one of them is reversible while the other is...

    iirc one of them is reversible while the other is not. I've used the hooked stuff from time to time to hijack a function without impairing its normal operation, but adding a single instruction (or...
  17. set abc "set timescale 0.3; bind capslock vstr...

    set abc "set timescale 0.3; bind capslock vstr def"
    set def "set timescale 1; bind capslock vstr abc"
    bind capslock vstr abc

    done.
  18. Replies
    2
    Views
    4,444

    Forum overrun by spambots

    Forum is currently being hammered by a bunch of annoying spambots. Working on it.
  19. Replies
    7
    Views
    5,244

    1. You cant have a guid on a cracked server 2....

    1. You cant have a guid on a cracked server
    2. You cant have a guid with the masterserver unavailable
    3. The masterservers have been down for a while now.
  20. Replies
    8
    Views
    1,776

    The system I wrote is not 100% secure, but...

    The system I wrote is not 100% secure, but nothing will be 100% secure, as cod doesnt support client-side crypto.

    For all normal intents and purposes the system is secure enough.
  21. Replies
    2
    Views
    2,101

    I'm gonna try and un-scramble the google...

    I'm gonna try and un-scramble the google translate in this post:

    An attacker kills someone and immediately leaves the server. The attacker is hence undefined. The server is then attempting to get...
  22. Replies
    2
    Views
    869

    Try this (untested) sortPlayers(players)...

    Try this (untested)



    sortPlayers(players)
    {
    newPlayers = [];
    for(i = 0; i < players.size; i++)
    {
    for(j = 0; j < newPlayers.size; j++)
  23. file_get_contents('/home/.callofduty2/sd2/scriptda...

    file_get_contents('/home/.callofduty2/sd2/scriptdata/stats/' .$filename)
  24. Use $file and get a substring out of it.

    Use $file and get a substring out of it.
  25. Thread: Hud element

    by IzNoGoD
    Replies
    1
    Views
    741

    Start your rect at 0 0, and make sure you finish...

    Start your rect at 0 0, and make sure you finish at (640-64) 0, if you use 64 lenght parts.

    Dont use the 1 3 at the end of rect, use the HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN ...
Results 1 to 25 of 598
Page 1 of 24 1 2 3 4