Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 227
Search took 0.02 seconds.
Search: Posts Made By: Kraugh
Forum: Scripting Help 05-26-2006, 03:07
Replies: 30
Views: 5,660
Posted By Kraugh
walking through what the script is thinking: ...

walking through what the script is thinking:

line = 0
while(read_file(xp_file,line++,text,90,numof))
because ++ follows the variable instead of preceding it, we are reading the current value,...
Forum: Scripting Help 05-26-2006, 03:01
Replies: 10
Views: 2,058
Posted By Kraugh
players and bombsites are both rectangular,...

players and bombsites are both rectangular, sphere calculations won't always work accurately in this instance.
Forum: Scripting Help 05-26-2006, 02:52
Replies: 5
Views: 1,625
Posted By Kraugh
in your client_damage forward, check if damage is...

in your client_damage forward, check if damage is more than 60. i don't know of any way to get that much damage on a single hit from a knife slash.
Forum: Scripting Help 03-16-2006, 02:05
Replies: 1
Views: 957
Posted By Kraugh
assuming your numbers are correct (127, 191,...

assuming your numbers are correct (127, 191, etcetera), then it should work. if you want to "refine" your for loop, you could try this:

new players[32], num, i;
get_players(players,num,"a");
...
Forum: Scripting Help 03-16-2006, 02:02
Replies: 6
Views: 1,593
Posted By Kraugh
actually, it is that simple‼ amx_ban already has...

actually, it is that simple‼ amx_ban already has a built-in syntax that allows you to display a reason when banning someone.

i assumed from his original post that he simply wanted "REASON: "...
Forum: Scripting Help 03-16-2006, 01:57
Replies: 12
Views: 2,244
Posted By Kraugh
i was referring as to what triggers it.

i was referring as to what triggers it.
Forum: Scripting Help 03-15-2006, 15:48
Replies: 12
Views: 2,244
Posted By Kraugh
how is your something function called?

how is your something function called?
Forum: Scripting Help 03-14-2006, 23:02
Replies: 12
Views: 2,244
Posted By Kraugh
show me the rest of the code.

show me the rest of the code.
Forum: Scripting Help 03-14-2006, 16:22
Replies: 12
Views: 2,244
Posted By Kraugh
try it again anyway and let us know how it goes.

try it again anyway and let us know how it goes.
Forum: Scripting Help 03-13-2006, 20:27
Replies: 6
Views: 1,593
Posted By Kraugh
go to admincmd.sma and find this code: if...

go to admincmd.sma and find this code:

if (reason[0])
server_cmd("kick #%d ^"%s (%s %s)^" ... )

then change it to this:

if (reason[0])
server_cmd("kick #%d ^"REASON: %s (%s %s)^"...
Forum: Scripting Help 03-13-2006, 20:23
Replies: 12
Views: 2,244
Posted By Kraugh
it looks like what you meant to do was put...

it looks like what you meant to do was put "players[i]" instead of "id". that is only in the for loop, not for anything outside of it.
Forum: Scripting Help 03-12-2006, 15:43
Replies: 1
Views: 748
Posted By Kraugh
try this: public plugin_precache() { ...

try this:

public plugin_precache() {
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"models/modelname.mdl");
}

this will stop the users from connecting if they don't have the same model...
Forum: Scripting Help 03-12-2006, 15:35
Replies: 11
Views: 2,335
Posted By Kraugh
returning PLUGIN_HANDLED tells the game to stop...

returning PLUGIN_HANDLED tells the game to stop whatever this function was supposed to be doing in the first place (in this case it is displaying the message to the rest of the players). return...
Forum: Scripting Help 03-12-2006, 15:32
Replies: 11
Views: 2,659
Posted By Kraugh
because you are passing 0 into functions that...

because you are passing 0 into functions that require a valid player id. try this:

// only one thing needs to be hooked!
public plugin_init() {
register_logevent("new_round" , 2 ,...
Forum: Scripting Help 03-12-2006, 15:29
Replies: 2
Views: 1,871
Posted By Kraugh
new bool:g_aimpracon = false ---> new...

new bool:g_aimpracon = false

--->

new bool:g_aimpracon = true
Forum: Scripting Help 03-12-2006, 15:27
Replies: 13
Views: 3,002
Posted By Kraugh
oh well.

oh well.
Forum: Scripting Help 03-12-2006, 15:22
Replies: 2
Views: 1,306
Posted By Kraugh
in regards to find_player, here is an example:...

in regards to find_player, here is an example: players ABC, ABD, and ABE are connected. you search "with given part of name" (flag "b"), using "AB" for the search string. without the "j" flag, it...
Forum: Scripting Help 03-12-2006, 00:16
Replies: 11
Views: 2,659
Posted By Kraugh
new_round, event_game_will_restart, and...

new_round, event_game_will_restart, and MyFuncRoundStart are not passed player ids. even though you have them in the header, the value is 0 because this is a global event and there is no individual...
Forum: Scripting Help 03-12-2006, 00:10
Replies: 5
Views: 1,369
Posted By Kraugh
[edit] i was completely wrong. after target...

[edit]
i was completely wrong. after target pointed it out, i actually remember using that function once while messing around with a custom mod in the sdk but i completely forgot about it. nice...
Forum: Scripting Help 03-11-2006, 17:57
Replies: 13
Views: 3,002
Posted By Kraugh
grenades seem to think faster than 0.1 seconds in...

grenades seem to think faster than 0.1 seconds in my experience. any distance covered in less than 0.1 seconds is negligible. this is not to say there are better methods than mine, but i would not...
Forum: Scripting Help 03-11-2006, 17:56
Replies: 4
Views: 1,382
Posted By Kraugh
you can't apply render effects without a model.

you can't apply render effects without a model.
Forum: Scripting Help 03-11-2006, 17:55
Replies: 2
Views: 898
Posted By Kraugh
set_user_gravity(id,2.0); this would make a...

set_user_gravity(id,2.0);
this would make a player's gravity twice as much as regular.
Forum: Suggestions / Requests 03-11-2006, 02:03
Replies: 5
Views: 1,373
Posted By Kraugh
take a look at this article:...

take a look at this article: http://www.joe.to/cstrike/ents/
Forum: Scripting Help 03-11-2006, 02:01
Replies: 25
Views: 6,053
Posted By Kraugh
after a brief study of CurWeapon, the following...

after a brief study of CurWeapon, the following should work.

register_event("CurWeapon", "publicfunction", "b", "1=1", "2!0", "2!CSW_KNIFE", "2!CSW_HEGRENADE", "2!CSW_C4")

cheers!
Forum: News 03-10-2006, 23:18
Replies: 53
Views: 28,088
Posted By Kraugh
congratulations‼

congratulations‼
Showing results 1 to 25 of 227

 
Forum Jump

All times are GMT -4. The time now is 15:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode