Search:

Search: Search took 1.00 seconds.

  1. Replies
    3
    Views
    3,638

    It's like: players =...

    It's like:




    players = getentarray("player", "classname");
    playerNearestDistance = 9999999999;
    playerNearest = undefined;
    for (i=0; i<players.size; i++)
    {
  2. Replies
    6
    Views
    4,813

    I don't think that its possible. Specialy u...

    I don't think that its possible.
    Specialy u would need to get the client cvar to check if its enabled or not.
    Also i think its hard coded on the client itself.
  3. Replies
    6
    Views
    4,813

    Switch on the xfire built-in fps indicator, you...

    Switch on the xfire built-in fps indicator, you can move and resize that.
  4. Replies
    6
    Views
    4,813

    >>>Click

    >>>Click<<<

    ...never tested it...

    (seta cg_debugInfoCornerOffset "-100 450")
  5. Replies
    3
    Views
    3,242

    http://killtube.org/showthread.php?893-Bullettrace...

    http://killtube.org/showthread.php?893-Bullettrace-and-you

    You'll need a startpoint and an endpoint. This endpoint should be 100 meters away from the startpoint in your case.

    Good luck with the...
  6. Replies
    16
    Views
    9,067

    getamountofchars(string, amount) { newstring =...

    getamountofchars(string, amount)
    {
    newstring = "";
    count = 0;
    for(i = 0; i < string.size; i++)
    {
    if(count == amount)
    break;
    if(i < string.size - 1 && string[i] == "^" &&...
  7. Replies
    16
    Views
    9,067

    getamountofchars(string, amount) { newstring =...

    getamountofchars(string, amount)
    {
    newstring = "";
    count = 0;
    for(i = 0; i < string.size; i++)
    {
    if(count == amount)
    break;
    if(i < string.size - 1 && string[i] == "^" &&...
  8. Replies
    16
    Views
    9,067

    Well, you can't shorten a player's name to 10...

    Well, you can't shorten a player's name to 10 characters until you know how long it is. For example, you could not shorten my name (Tally) to 10 characters because it isn't 10 characters to begin...
  9. Replies
    16
    Views
    9,067

    The error "player field name is read-only" is...

    The error "player field name is read-only" is telling you you cannot reassign the player.name field, which is what you were doing when you wrote this:


    player.name = getsubstr(player.name, 0,...
  10. Replies
    16
    Views
    9,067

    That should be enough: if...

    That should be enough:




    if (player.name.size > 10)
    {
    newName = getsubstr(player.name, 0, 10);
    player setClientCvar("ui_cvar", newName); // whatever this is for
    player...
  11. Replies
    2
    Views
    3,414

    You can look at std/utils::playSoundOnPosition...

    You can look at std/utils::playSoundOnPosition



    playSoundOnPosition(position, name)
    {
    ent = spawn("script_origin", position);
    ent playSound(name);
    ent delete();
    }
  12. Replies
    4
    Views
    4,849

    Just to express that in code. :D From: self...

    Just to express that in code. :D

    From:

    self thread files\_propertiesguid::load(guid); // Load self.oldweapon

    To:

    self files\_propertiesguid::load(guid); // Load self.oldweapon
  13. Replies
    4
    Views
    4,849

    Converting to string isnt needed I would advise...

    Converting to string isnt needed
    I would advise you to move the getguid() and that other thread out of the loop.

    Also, if timing is critical, DO NOT THREAD that function. Remove thread-word.
  14. Replies
    4
    Views
    4,849

    I dont know exactly what you want to do, but...

    I dont know exactly what you want to do, but maybe this could help:



    if(response == "buttons")
    {
    for(i = 0; i < level.weapons.size; i++)
    ...
  15. Replies
    7
    Views
    5,348

    Ah, didnt understood first time: ...

    Ah, didnt understood first time:




    triggerThink()
    {
    while(1)
    {
    trig waittill("trigger", player);
  16. Replies
    7
    Views
    5,348

    Did you tried it this way? ...

    Did you tried it this way?




    triggerThink()
    {
    player = self;
    player iprintlnbold("1");
    }
  17. Replies
    2
    Views
    3,360

    You can use some healthbar-script as rank-bar: ...

    You can use some healthbar-script as rank-bar:



    precache()
    {
    precacheShader("gfx/hud/hud@health_cross.tga");
    precacheShader("gfx/hud/hud@health_back.tga");...
  18. I call it like this: zombieSpawn(position,...

    I call it like this:



    zombieSpawn(position, angles)
    {
    player = self;

    player playsound("grenade_explode_dirt");
    playfx(level.fx["large_mud"], position);
  19. you can use for code, thats more readable. ...

    you can use
    for code, thats more readable.

    please try:



    player hasWeapon("frag_grenade_american_mp");
    player hasWeapon("frag_grenade_british_mp");
    player...
  20. Hey Moczulak! There are two ways to set...

    Hey Moczulak!


    There are two ways to set cvars.

    setcvar() is for the SERVER
    setclientcvar() is for the PLAYER

    so if you want to set r_gamma for a player, just call:
Results 1 to 20 of 20