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

Showing results 1 to 25 of 362
Search took 0.02 seconds.
Search: Posts Made By: BlueRaja
Forum: Scripting 12-21-2011, 13:45
Replies: 5
Views: 1,213
Posted By BlueRaja
Re: I don't know what the problem is with my code?

public OnPluginStart()
{
RegAdminCmd("sm_igsc", Command_igsc, Admin_Generic, "Put description here"); //<--- Admin flags are required. A description is also polite.
}

public...
Forum: Snippets and Tutorials 12-20-2011, 19:10
Replies: 458
Views: 312,884
Posted By BlueRaja
Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011

Ah, then it's not correct (try Math_Overflow(7, 2, 8 )). It should be


return (value % (max-min+1)) + min;


This will work for negative min/max, but it might not work for negative value. ...
Forum: Snippets and Tutorials 12-20-2011, 17:54
Replies: 458
Views: 312,884
Posted By BlueRaja
Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011

I like the icons in the main post, you are good at this :)

However, question: What in the world is this for?


/**
* Let's the specified value "overflow" if it is outside the given limit.
...
Forum: Scripting 12-19-2011, 21:31
Replies: 7
Views: 2,648
Posted By BlueRaja
Re: Falling Smoke

DispatchKeyValue(gascloud, "Angles", "180 0 0");
Forum: Scripting 12-19-2011, 16:10
Replies: 2
Views: 2,332
Posted By BlueRaja
Is there an SDKTools Tutorial? (DispatchKeyValue and SetEntProp)

I've been looking around for a tutorial on the SDKTools functions, but the wiki entry (http://wiki.alliedmods.net/SDKTools_%28SourceMod_Scripting%29) is completely unrelated to what I'm looking for....
Forum: Scripting 12-16-2011, 14:29
Replies: 12
Views: 3,172
Posted By BlueRaja
Re: code optimization

Unless you are writing code for a toaster with a 30-year-old CPU, it doesn't matter which you choose. If there is a difference, it will likely be on the order of a microsecond, which is not even...
Forum: Scripting 12-16-2011, 13:43
Replies: 11
Views: 3,631
Posted By BlueRaja
Re: Problem creating array of dynamic-arrays (adt_array) of objects

Awesome, thanks guys, I'll try it out tonight.

Note to future googlers: If you call CreateArray() in OnMapStart(), make sure you call CloseHandle() in OnMapEnd(), or only call CreateArray() when...
Forum: Scripting 12-16-2011, 02:03
Replies: 9
Views: 2,473
Posted By BlueRaja
Re: Looping over all players in the server

I don't believe you want to call GetClientOfUserId(i) - i is the client-id.
Forum: Scripting 12-15-2011, 18:54
Replies: 11
Views: 3,631
Posted By BlueRaja
Problem creating array of dynamic-arrays (adt_array) of objects in OnPluginStart()

I need to store multiple MyData's per player:

enum MyData
{
OrangePeels,
TimeSharesInAfrica,
bool:IsClarkKent
//etc.
}
Forum: Scripting Help 12-15-2011, 18:52
Replies: 2
Views: 891
Posted By BlueRaja
Forum: Scripting Help 12-15-2011, 18:25
Replies: 2
Views: 891
Posted By BlueRaja
[Deleted]

[Deleted, wrong forum]
Forum: Plugins 11-23-2011, 00:43
Replies: 29
Views: 53,345
Posted By BlueRaja
Re: [CS:S] Radio Spam Block (1.0.0)

This plugin spams the sm_help menu with a bunch of non-existent commands (every command you call RegConsoleCmd() on). It doesn't have to: see...
Forum: Scripting 11-03-2011, 15:46
Replies: 2
Views: 1,128
Posted By BlueRaja
Difference between hooking events and using built-in forward/callback?

If you create a public function called OnPlayerConnect(), it will be automatically called when a player connects. However, hooking to the "player_connect" event apparently does the same thing. Is...
Forum: Unapproved Plugins 08-13-2011, 17:34
Replies: 50
Views: 26,203
Posted By BlueRaja
Forum: Unapproved Plugins 08-13-2011, 13:20
Replies: 50
Views: 26,203
Posted By BlueRaja
Re: [CSS] Jihad Mod (Update 29/01/2011)

Bombs keep glitching out so that no one can buy them; it keeps saying "there are too many players on your team with bombs," even after mapchange. The only way to fix this is to restart server.
...
Forum: News 01-15-2010, 18:54
Replies: 76
Views: 46,454
Posted By BlueRaja
Re: SourceMod 1.3 Released!

Hey, Bailopan, you're still alive.
Forum: Code Snippets/Tutorials 06-04-2007, 13:20
Replies: 87
Views: 69,614
Posted By BlueRaja
Re: [FAQ/Tutorial] CS Bomb Scripting

Ah, I had thought I had tried that... turns out I forgot to call floatround() before calling write_coord().
Thank you much, Ven!
Forum: Code Snippets/Tutorials 06-02-2007, 15:20
Replies: 87
Views: 69,614
Posted By BlueRaja
Re: [FAQ/Tutorial] CS Bomb Scripting

How do you find the position of the dropped bomb? This is what I have...

new bomb = find_ent_by_class(-1, "weapon_c4"), Float:bombPos[3]

//None of the following seem to work...
Forum: (OLD) Bug Reports 09-10-2006, 13:03
Replies: 2
Views: 1,430
Posted By BlueRaja
Re: [plmenu] plmenu.

Our clcmds.ini is still the default:
; Menu configuration file
; Default File location: $moddir/addons/amxmodx/configs/clcmds.ini
; To use with Players Menu plugin

; NOTE: By default in all...
Forum: (OLD) Bug Reports 09-02-2006, 11:37
Replies: 2
Views: 1,430
Posted By BlueRaja
[plmenu] plmenu.

http://forums.alliedmods.net/showthread.php?t=41049
I've received the same error; however, it's hard to reproduce, because I believe it happens when there are only a certain number of people in the...
Forum: Suggestions / Requests 09-01-2006, 04:46
Replies: 12
Views: 3,243
Posted By BlueRaja
Re: amx_tempgod

wtf how can you call client_cmd(id,...) after client_disconnect(id) has been forwarded?
Forum: Approved Plugins 09-01-2006, 04:36
Replies: 39
Views: 83,226
Posted By BlueRaja
Re: Colored "say" and "say_team"

Starwarsfan: My plugin shouldn't affect those.
Forum: Approved Plugins 09-01-2006, 04:27
Replies: 76
Views: 155,761
Posted By BlueRaja
Re: Weapon Menu (Mattcook & xeroblood)

From cstrike.inc:
/*
* Weapons on the same line uses the same ammo type:
...
* famas, m4a1, aug, sg550, galil, sg552
*/

To prevent weaponmenu.amxx from spamming the error logs every time...
Forum: Suggestions / Requests 08-18-2006, 06:14
Replies: 12
Views: 3,243
Posted By BlueRaja
Re: amx_tempgod

Bind godmode to a key or something, and hit it before you enter the console
Forum: Unapproved/Old Plugins 12-30-2005, 11:01
Replies: 9
Views: 5,538
Posted By BlueRaja
okay.

okay.
Showing results 1 to 25 of 362

 
Forum Jump

All times are GMT -4. The time now is 13:35.


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