Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $51
Target: $400
12%
Search Forums
Show Threads
Show Posts
Advanced Search
Go to Page...
Page 1 of 7
1
2
3
>
Last
»
Showing results 1 to 25 of 158
Search took
0.02
seconds.
Search:
Posts Made By:
Doodil
Forum:
Scripting
05-17-2014, 04:45
Replies:
8
If executed, don't execute other
Views:
1,067
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
[SOLVED] Loop display menu
Views:
3,176
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
[SOLVED] Loop display menu
Views:
3,176
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
OnClientAuthorized
Views:
3,035
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
[CSGO]SQL Database Save Question
Views:
1,228
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
[SOLVED]How to compare bitstrings(like (1<<1))
Views:
3,507
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
[SOLVED]How to compare bitstrings(like (1<<1))
Views:
3,507
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
Help
Views:
699
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
Hidden SourceTV
Views:
4,004
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
Hidden SourceTV
Views:
4,004
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
need help
Views:
1,651
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
Creating a Donation Menu that executes commands, error related to a variable
Views:
3,682
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
Creating a Donation Menu that executes commands, error related to a variable
Views:
3,682
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
Creating a Donation Menu that executes commands, error related to a variable
Views:
3,682
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
Creating a Donation Menu that executes commands, error related to a variable
Views:
3,682
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
On Round Start
Views:
1,553
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
Check if player is entering a area/zone
Views:
7,819
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
Need help with entity editing.
Views:
4,848
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
Best method to saving player data?
Views:
2,494
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
Need help with entity editing.
Views:
4,848
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
Geometry to create circle
Views:
3,919
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
Geometry to create circle
Views:
3,919
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
GetPlayerWeaponSlot always resolving to -1
Views:
5,417
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
[PAID] Repair errors on plugins
Views:
603
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
Time intervals instead of kills for credits (or certain team kills)
Views:
900
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
Page 1 of 7
1
2
3
>
Last
»
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
04:58
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode