Raised This Month: $342 Target: $400
 85%   Almost there!

Showing results 1 to 25 of 72
Search took 0.01 seconds.
Search: Posts Made By: Farbror Godis
Forum: Scripting 08-19-2019, 09:34
Replies: 2
Views: 1,109
Posted By Farbror Godis
Re: Hook buymenu out of buyzone

AddCommandListener(CmdListener_BuyMenu, "buymenu");


Then in the callback you can check if the client is in the buyzone or not using Indarello's example.
Forum: Scripting 08-18-2019, 16:43
Replies: 6
Views: 1,677
Posted By Farbror Godis
Re: [SQL] Error

I think it may be the ' symbols. As a side note, make it a habit to use Database.Format for queries in the future.
Forum: Scripting 08-17-2019, 19:39
Replies: 5
Views: 1,403
Posted By Farbror Godis
Re: GetConVar... every time its executed vs storing the Value

As you said this is probably such a small difference that it is barely measurable.. But generally caching (that is, storing it in a variable) is faster, don't see why it would be any different in...
Forum: Plugins 08-17-2019, 17:34
Replies: 12
Views: 8,964
Posted By Farbror Godis
Forum: Plugins 08-13-2019, 11:08
Replies: 12
Views: 8,964
Posted By Farbror Godis
Forum: General 07-22-2019, 23:09
Replies: 1
Views: 957
Posted By Farbror Godis
Setting arm-models in CS:GO?

Since the addition of gloves to the game (I've been away for a while): Is changing the arm models to custom models allowed? Or will my GSLT token get banned?
Forum: Scripting 11-07-2016, 17:26
Replies: 1
Views: 462
Posted By Farbror Godis
Enum madness? Structs? What?

* Compiler used was the latest stable 1.8 build.

I was messing around a bit and i tried using typedefs to create arbitrary types (i found later you can only create typenames for functions)
...
Forum: Scripting 08-27-2016, 12:33
Replies: 10
Views: 1,325
Posted By Farbror Godis
Forum: Scripting 08-18-2016, 05:49
Replies: 4
Views: 1,042
Posted By Farbror Godis
Re: [REQ] Menu System

Or if you want to do it yourself, use SetEntityMoveType (https://sm.alliedmods.net/new-api/entity_prop_stocks/SetEntityMoveType) with MOVETYPE_NONE, create a timer, and when the timer has finished...
Forum: Scripting 08-17-2016, 15:14
Replies: 2
Views: 516
Posted By Farbror Godis
Re: [CS:GO] Basic Question About New Syntax -> Old Syntax

?


BasicFunction()
{
int NumArray[2][5];

AddArray(NumArray[0], 5);
}
Forum: Snippets and Tutorials 08-08-2016, 16:01
Replies: 12
Views: 8,674
Posted By Farbror Godis
Re: [INC] Menu stocks

The code in my first post had a few typos, but the code in my repo is fine so make sure you grab that one.
Forum: Scripting 08-04-2016, 18:45
Replies: 2
Views: 523
Posted By Farbror Godis
Re: Little problem with timers.

Does it even compile? Your timer takes a client id (which by the way is very error-prone) but you don't pass anything. OnClientPostAdminCheck also has a client index parameter but that is missing in...
Forum: Plugin/Gameplay Ideas and Requests 08-04-2016, 14:56
Replies: 7
Views: 1,288
Posted By Farbror Godis
Re: [PAID IF NEEDED] Colored HSay or CSay Announcements

Predefined colors like red or blue does not work, however hexadecimal values do work.

<font color='#ff0000'>%s %N</font>
Forum: Snippets and Tutorials 08-03-2016, 13:35
Replies: 12
Views: 8,674
Posted By Farbror Godis
Re: [INC] Menu stocks

What about something like this? (not tested, but it compiles. Also, not sure what result retagging a typdef yields, but again, it compiles)



typedef SmartMenuHandler = function int(SmartMenu...
Forum: Snippets and Tutorials 08-02-2016, 06:59
Replies: 24
Views: 13,428
Posted By Farbror Godis
Re: [Tutorial] How to use Google™ to find what you're looking for in 5 simple steps!

That's actually really useful stuff right there, think it's time this thread became a little sticky.. :wink:
Forum: Scripting 08-01-2016, 15:24
Replies: 13
Views: 2,998
Posted By Farbror Godis
Re: [CSGO] Vip Plugin help!

You realise this thread is over a year old right?
Forum: Scripting 07-25-2016, 12:56
Replies: 4
Views: 945
Posted By Farbror Godis
Re: RegAdminCmd() => Error 100: function prototypes do not match

The second parameter of RegAdminCmd takes a ConCmd callback, and that is not at all what you have provided.


public DataBaseConfiguration(pluginsLoaded[], pluginsName[])


Should be:

...
Forum: Scripting 07-21-2016, 15:01
Replies: 8
Views: 1,302
Posted By Farbror Godis
Re: Problem with native from zp

Looks like SourcePawn but cBasePlayer seems to be a pointer. (what's going on?).
Forum: Trash 07-05-2016, 16:15
Replies: 2
Views: 924
Posted By Farbror Godis
[Stock] GetTheAnswerToTheUltimateQuestionOfLifeTheUni verseAndEverything

stock int GetTheAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything() {
return 42;
}
Forum: Unapproved Plugins 06-29-2016, 16:50
Replies: 7
Views: 4,892
Posted By Farbror Godis
Re: [CSGO] -`ღ´- Auto Respawn

Haha mate i had a good laugh when i looked in the plugin section today :)

http://puu.sh/pKD78/5719f7d3c2.png
Forum: Scripting 05-21-2016, 14:40
Replies: 13
Views: 1,980
Posted By Farbror Godis
Re: Targets list in menu

There's actually a function that does it all for you that most people don't use; AddTargetsToMenu (https://sm.alliedmods.net/new-api/adminmenu/AddTargetsToMenu)
Forum: Scripting 05-19-2016, 06:48
Replies: 14
Views: 1,342
Posted By Farbror Godis
Re: Help with a code

... Really?
Forum: Scripting 05-18-2016, 12:18
Replies: 14
Views: 1,342
Posted By Farbror Godis
Re: Help with a code

There's a missing ")" on that line.
Forum: Scripting 05-18-2016, 10:39
Replies: 14
Views: 1,342
Posted By Farbror Godis
Re: Help with a code

The snippet in my reply is what you want.
Forum: Scripting 05-18-2016, 10:31
Replies: 14
Views: 1,342
Posted By Farbror Godis
Re: Help with a code

for(int i = 1; i <= MaxClients; i++) {
if(IsClientInGame(i) && IsPlayerAlive(i) && (GetClientTeam(i) == view_as<int>(TFTeam_Red)) {
TF2_RemoveAllWeapons(i);
}
}


The function takes a...
Showing results 1 to 25 of 72

 
Forum Jump

All times are GMT -4. The time now is 16:58.


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