Search:

Type: Posts; User: Toxys

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    2,411

    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...
  2. Replies
    16
    Views
    2,411

    I didn't hear any sound...

    I didn't hear any sound...
  3. Replies
    16
    Views
    2,411

    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...
  4. Replies
    16
    Views
    2,411

    ... 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...
  5. Replies
    16
    Views
    2,411

    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...
  6. Replies
    16
    Views
    2,411

    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...
  7. Replies
    6
    Views
    1,060

    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...
  8. Replies
    6
    Views
    1,060

    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.:...
  9. Replies
    6
    Views
    1,060

    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...
  10. 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...
  11. Replies
    7
    Views
    1,343

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

    No, I tested with different distances and always got that message.
  12. 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...
  13. Replies
    7
    Views
    1,343

    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...
  14. Replies
    3
    Views
    757

    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...
  15. Replies
    3
    Views
    757

    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...
  16. Replies
    7
    Views
    1,343

    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...
  17. Replies
    6
    Views
    1,112

    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...
  18. Replies
    6
    Views
    1,112

    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...
  19. Replies
    6
    Views
    1,112

    [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...
  20. Replies
    7
    Views
    1,343

    [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 20 of 20