Search:
Search took 1.00 seconds.
-
It's like:
players = getentarray("player", "classname");
playerNearestDistance = 9999999999;
playerNearest = undefined;
for (i=0; i<players.size; i++)
{
-
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.
-
Switch on the xfire built-in fps indicator, you can move and resize that.
-
>>>Click<<<
...never tested it...
(seta cg_debugInfoCornerOffset "-100 450")
-
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...
-
getamountofchars(string, amount)
{
newstring = "";
count = 0;
for(i = 0; i < string.size; i++)
{
if(count == amount)
break;
if(i < string.size - 1 && string[i] == "^" &&...
-
getamountofchars(string, amount)
{
newstring = "";
count = 0;
for(i = 0; i < string.size; i++)
{
if(count == amount)
break;
if(i < string.size - 1 && string[i] == "^" &&...
-
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...
-
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,...
-
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...
-
You can look at std/utils::playSoundOnPosition
playSoundOnPosition(position, name)
{
ent = spawn("script_origin", position);
ent playSound(name);
ent delete();
}
-
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
-
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.
-
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++)
...
-
Ah, didnt understood first time:
triggerThink()
{
while(1)
{
trig waittill("trigger", player);
-
Did you tried it this way?
triggerThink()
{
player = self;
player iprintlnbold("1");
}
-
You can use some healthbar-script as rank-bar:
precache()
{
precacheShader("gfx/hud/hud@health_cross.tga");
precacheShader("gfx/hud/hud@health_back.tga");...
-
I call it like this:
zombieSpawn(position, angles)
{
player = self;
player playsound("grenade_explode_dirt");
playfx(level.fx["large_mud"], position);
-
you can use
for code, thats more readable.
please try:
player hasWeapon("frag_grenade_american_mp");
player hasWeapon("frag_grenade_british_mp");
player...
-
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: