Monthly Target: $400 Donations: $353
 88%   Almost there!

Showing results 1 to 25 of 158
Search took 0.04 seconds.
Search: Posts Made By: Doodil
Forum: Scripting 05-17-2014, 04:45
Replies: 8
Views: 215
Posted By Doodil
Re: If executed, don't execute other

Create a global bool variable that gets set to false on round start and to true once part 1 or part 2 happened. Before executing your code check if the global variable is true or false and act...
Forum: Scripting 05-07-2014, 02:39
Replies: 12
Views: 535
Posted By Doodil
Re: Loop display menu

You did the same mistake I did. He says he's creating new menus, he just removed the code in the quote and replaced it with a comment saying that he does.

I guess you should post the part where...
Forum: Scripting 05-06-2014, 10:42
Replies: 12
Views: 535
Posted By Doodil
Re: Loop display menu

no, you need to create 1 menu variable for each player, copy the code where you create the menu variable into your function and you should be fine.
Forum: Scripting 05-02-2014, 08:33
Replies: 9
Views: 568
Posted By Doodil
Re: OnClientAuthorized

Have you checked if you actually recieve a auth string? I remember having problems with OnClientAuthorized (years ago) and had to use OnClientPostAdminCheck() to retrieve the steam-id.

My guess is...
Forum: Scripting 05-02-2014, 08:28
Replies: 3
Views: 223
Posted By Doodil
Re: [CSGO]SQL Database Save Question

It actually depends on the DatabaseSave() function. If the function retrieves the steam-id from the client-id and you clean up properly on disconnect/connect you should not have any problems. You do...
Forum: Scripting 03-26-2014, 14:03
Replies: 17
Views: 937
Posted By Doodil
Re: How to compare bitstrings(like (1<<1))

5 = 101
(5<<1) = 1010 = 10

1 = 001
(1<<5) = 100000 = 32

it depends on your plugin and what you were trying to do, but you usually want to shift 1 bit 5 places to the left, so yes, (1<<5)...
Forum: Scripting 03-26-2014, 11:15
Replies: 17
Views: 937
Posted By Doodil
Re: How to compare bitstrings(like (1<<1))

correct me if I'm wrong, but in other programing languages (1|2|3) does not mean "set bit 1, 2 and 3" but "set the bits that are used to represent the numbers 1, 2 and 3". And that means:

1= 001...
Forum: Scripting 09-07-2013, 19:54
Replies: 1
Views: 208
Posted By Doodil
Re: Help

try something like this:

public Action:DisplayChar(Handle:timer, any:data)
{
new char = ReadPackCell(data);
new Float:origin[3];
origin[0]=ReadPackFloat(data);
...
Forum: Scripting 08-30-2013, 16:29
Replies: 15
Views: 1,007
Posted By Doodil
Re: Hidden SourceTV

That means the "IsClientSourceTV" function seems to be not working. As a workaround you can change the name of the sourcetv-bot to something noone else will call themself and check if clientname...
Forum: Scripting 08-30-2013, 16:22
Replies: 15
Views: 1,007
Posted By Doodil
Re: Hidden SourceTV

and what part is not working? Does it still show the old status message? Does it show the new one but still include the sourcetv bot?
Forum: Plugin/Gameplay Ideas and Requests 08-28-2013, 03:27
Replies: 3
Views: 398
Posted By Doodil
Re: need help

you didn't post the whole source, but my guess is, that "DamageResistance" and "pourcent" are ints and not floats, therefore have no decimal point and "pourcent = DamageResistance / 100" will always...
Forum: Scripting 08-25-2013, 05:16
Replies: 15
Views: 1,326
Posted By Doodil
Re: Creating a Donation Menu that executes commands, error related to a variable

ShowMenu2(client)
{
new Handle:menu2 = CreateMenu(MenuHandler);
SetMenuExitBackButton(menu2, true);
SetMenuTitle(menu2, "Donor Menu");
if (CheckCommandAccess(client, "generic_admin",...
Forum: Scripting 08-24-2013, 19:29
Replies: 15
Views: 1,326
Posted By Doodil
Re: Creating a Donation Menu that executes commands, error related to a variable

I'm taking a guess here... but I think it is because of the

CloseHandle(menu);

in the MenuAction_End part of the code. It might be possible that this part gets called even when you select a...
Forum: Scripting 08-24-2013, 11:20
Replies: 15
Views: 1,326
Posted By Doodil
Re: Creating a Donation Menu that executes commands, error related to a variable

After a selection was made you have to redisplay the menu:

public MenuHandler(Handle:menu, MenuAction:action, client, param2)
{
switch (action)
{
case MenuAction_Select:
{...
Forum: Scripting 08-24-2013, 06:12
Replies: 15
Views: 1,326
Posted By Doodil
Re: Creating a Donation Menu that executes commands, error related to a variable

GetSteamAccountID does not return a string, you might look for GetClientAuthString (http://docs.sourcemod.net/api/index.php?fastload=show&id=401&) if you want to get the Steam-ID or not save it as a...
Forum: Scripting 08-15-2013, 13:41
Replies: 13
Views: 462
Posted By Doodil
Re: On Round Start

return Plugin_Continue;

in the for loop ends the function right there and stops it from looping over the other players
Forum: Scripting 08-07-2013, 06:07
Replies: 21
Views: 2,091
Posted By Doodil
Re: Check if player is entering a area/zone

it fills the float array you pass in the parameter with data. It doesn't return anything, but it still changes the values
Forum: Scripting 08-07-2013, 05:56
Replies: 16
Views: 1,494
Posted By Doodil
Re: Need help with entity editing.

Well, first of all you are only editing one (the first) func_train. You've got to use a loop like this to process all of them:

public OnPluginStart()
{
new ent = -1;
while ((ent =...
Forum: Scripting 08-07-2013, 04:28
Replies: 15
Views: 1,069
Posted By Doodil
Re: Best method to saving player data?

Then create 2 global arrays (you can also do it with just one, but no need to be greedy here), one is an MAXPLAYER-sized array of bools, indicating if a player should be banned when he disconnects...
Forum: Scripting 08-06-2013, 18:47
Replies: 16
Views: 1,494
Posted By Doodil
Re: Need help with entity editing.

Well, "EntIndex" in line 17 is not defined.
DispatchKeyValueFloat(EntIndex, "orientationtype", 0.0);

You have never used/initialized "EntIndex" before, you probably want to replace that with...
Forum: Scripting 07-17-2013, 14:42
Replies: 6
Views: 561
Posted By Doodil
Re: Geometry to create circle

As 11530 already said, there are radians and degrees to measure a circle... this picture explains it I think:
http://upload.wikimedia.org/wikipedia/commons/4/4e/Circle_radians.gif

so a degree of...
Forum: Scripting 07-16-2013, 17:06
Replies: 6
Views: 561
Posted By Doodil
Re: Geometry to create circle

Let's try this line by line:

while (angle <= 2 * PI)

For a whole cirlce (a circle is 2*PI, 4*PI would be the same circle twice, 1*PI half a circle, so it repeats every 2PI [since its a circle...
Forum: Scripting 06-27-2013, 18:03
Replies: 12
Views: 1,439
Posted By Doodil
Re: GetPlayerWeaponSlot always resolving to -1

We just have to assume that its the wrong id or that the function just does not support hl2dm (anymore?) I guess. Maybe loop through a few numbers and print the values to chat to see if the ids...
Forum: Plugin/Gameplay Ideas and Requests 06-27-2013, 17:02
Replies: 3
Views: 302
Posted By Doodil
Re: [PAID] Repair errors on plugins

Clientid 0 means that the server itself and not the client tried to execute the command (in this case probably trying to open a menu). This usually happens when you create a listen server (and not a...
Forum: Scripting 06-26-2013, 03:43
Replies: 5
Views: 318
Posted By Doodil
Re: Time intervals instead of kills for credits (or certain team kills)

posting the ".smx" doesn't really help, since this is the compiled version of the code (aka not human readable). If you want to post the code you have to post the ".sp".

To your problem:

Yes...
Showing results 1 to 25 of 158

 
Forum Jump

All times are GMT -4. The time now is 19:27.


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