Search:

Type: Posts; User: Toxys

Search: Search took 0.00 seconds; generated 19 minute(s) ago.

  1. Thread: Scoreboard info

    by Toxys
    Replies
    2
    Views
    2,240

    This is a good question, there are some tutorial...

    This is a good question, there are some tutorial how to do that?
  2. Replies
    1
    Views
    2,863

    Custom command for set client cvar

    Hello,

    How can I do a custom command for setting client's cvar without libcod (or if it's necessary then with libcod)? setcvar("test", "1") which is not an rcon / openscritmenu command just for...
  3. Replies
    16
    Views
    46,997

    Ummm , I added the playlocalsound in sd.gsc into...

    Ummm , I added the playlocalsound in sd.gsc into spawnPlayer() function so that's must being called when player spawned... after the playlocalsound I wrote iprintlnBold("Music playing") and that's...
  4. Replies
    16
    Views
    46,997

    I didn't hear any sound...

    I didn't hear any sound...
  5. Replies
    16
    Views
    46,997

    I did check... I added these lines to .csv: ...

    I did check... I added these lines to .csv:



    test_music,1,music/music1.mp3,,,,,,,,music,streamed,,,,all_mp,,,,,,local
    test_music,2,music/music2.mp3,,,,,,,,music,streamed,,,,all_mp,,,,,,local...
  6. Replies
    16
    Views
    46,997

    ... I talking about random sounds in the whole...

    ... I talking about random sounds in the whole topic. I don't want to just play one sound... That's why I need to use random() because I will add about 5-6 sounds and want to play randomly from that...
  7. Replies
    16
    Views
    46,997

    Thank you for your reply, Okay but I still...

    Thank you for your reply,

    Okay but I still don't know how to play these sounds randomly... I know I need these functions: self playLocalSound("music1") , random in the gsc where I want to play the...
  8. Replies
    16
    Views
    46,997

    Play random music

    How can I play random music? I know I need to define the .mp3 files which I want to play in the soundaliases/iw_soun2.csv, I want to play to all players at the same time but once so I need to add...
  9. Replies
    6
    Views
    5,431

    Yes I know there is no 100% security, but not...

    Yes I know there is no 100% security, but not everyone look into the codes, etc... so this minimal security will be ok.

    Well I set sv_allowdownload to 0, so the players can download only through...
  10. Replies
    6
    Views
    5,431

    No, I want to protect a mod with hide a code in...

    No, I want to protect a mod with hide a code in some gsc in that way...

    So the code would check if the server ip (where is the mod) is matches with the ip address in the txt on a webserver (ex.:...
  11. Replies
    6
    Views
    5,431

    Getting IP from external site

    I have 2 questions:

    - Can I get the current server's ip address from a GSC file somehow?
    - If so, can I read a file from external site and check if the ip address in that file is the same as the...
  12. Yes, but it can be done because I saw it on some...

    Yes, but it can be done because I saw it on some other servers... or they changed the bullet of e.g.: kar98k to a rocket launcher projectile and that's why they can kill those models?

    Look at this...
  13. Replies
    7
    Views
    16,387

    No, I tested with different distances and always...

    No, I tested with different distances and always got that message.
  14. If player select custom model e.g.: brush_egypt_desert_1 I can't hit and kill him

    Why I can't kill players with custom models? I mean if a player choose a custom model from the menu e.g: a brush (for ex.: brush_egypt_desert_1) I can't hit and kill him.

    I read in some thread...
  15. Replies
    7
    Views
    16,387

    I didn't replaced the whole Callback_PlayerDamage...

    I didn't replaced the whole Callback_PlayerDamage function. Just added your code. But this is always displays "distance so long" no matter how far I shoot the enemy player.

    I want to display the...
  16. Replies
    3
    Views
    3,207

    I don't set the model at spawn as I said this...

    I don't set the model at spawn as I said this script is setting the model when I click on a button in the menu... a .menu file handling the setmodel or I'm wrong?


    execKey "a" { play...
  17. Replies
    3
    Views
    3,207

    Save custom player model and retrieve

    I have a mod which set the player's model to custom models if you select that in the menu

    An example from the ui_mp/objects1.menu


    execKey "a" { play "mouse_click"; scriptMenuResponse...
  18. Replies
    7
    Views
    16,387

    I need to set this in for ex.: sd.gsc right? I...

    I need to set this in for ex.: sd.gsc right?

    I changed the Callback_PlayerDamage function to this but it doesn't seem to work. A little modification about my question: I wan't to print "distance...
  19. Replies
    6
    Views
    6,255

    Yes, I saw all of them but I want to activate...

    Yes, I saw all of them but I want to activate once after useButtonPressed and not just the "change weapon" method I want to give at least 400x speed just for 10 seconds and the player can't cancel...
  20. Replies
    6
    Views
    6,255

    Ummm sadly I don't using libcod yet. But I trying...

    Ummm sadly I don't using libcod yet. But I trying to figure out.

    It seems to work fine but I'm not sure that's the right way and if I'm die while sprinting then I have infinite sprint so the...
  21. Replies
    6
    Views
    6,255

    [CoD2] If user press F then sprint

    How can I change the player's speed if he press F key? I know how to detect if player pressed F but I can't change the player's speed:


    self endon("disconnect");

    while(1)
    {
    if(self...
  22. Replies
    7
    Views
    16,387

    [CoD2] Weapon hit range

    Hi,

    How can I set "kar98k"'s hit range? Is this enough if I set in eg.: weapons/kar98k_mp maxDamageRange?

    If the player's hit range > 2000 then print a text to the screen: "The hit range was...
Results 1 to 22 of 22