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

Showing results 1 to 25 of 214
Search took 0.02 seconds.
Search: Posts Made By: t3hNox
Forum: Scripting Help 08-11-2012, 12:25
Replies: 4
Views: 985
Posted By t3hNox
Re: Timeleft of another server

You can use this: https://forums.alliedmods.net/showthread.php?t=150519
Forum: Scripting Help 07-08-2012, 08:55
Replies: 10
Views: 2,850
Posted By t3hNox
Re: Get current Map and use 'if'

To be more specific:
if(equali(szMapName, "de_", 3))

It only checks the first three characters (for example, "de_", not the whole map name "de_inferno").
Forum: Scripting Help 07-02-2012, 18:00
Replies: 3
Views: 1,142
Posted By t3hNox
Re: Invalid player 3

Check if both players are alive.
is_user_alive()
Forum: Code Snippets/Tutorials 06-29-2012, 14:46
Replies: 32
Views: 42,706
Posted By t3hNox
Re: [TUT] Dynamic / Fake Natives

Check "core program".
You use iParamID incorrectly. iParamID returns the total amount of parameters passed to the native. For example, for bkf_setFrags you should pass 3 parameters and thus in...
Forum: Scripting Help 06-29-2012, 13:23
Replies: 13
Views: 2,969
Posted By t3hNox
Re: Empty string

You can use strlen(). Or maybe check if szString[0] = EOS.
Forum: Scripting Help 06-24-2012, 11:14
Replies: 9
Views: 1,702
Posted By t3hNox
Re: id + any_defined_value in set_task()

The id (3rd param.) in set_task() has to be unique, so you cannot have (actually can have, but using player IDs (1-32) in set_tasks() may turn out to be a bad idea) two or more simultaneous tasks...
Forum: Code Snippets/Tutorials 06-15-2012, 10:56
Replies: 118
Views: 49,574
Posted By t3hNox
Re: [INC] SQLVault

Ok, thank you.
Forum: Code Snippets/Tutorials 06-15-2012, 10:41
Replies: 118
Views: 49,574
Posted By t3hNox
Re: [INC] SQLVault

That's really bad.
Would switching from SQLite to a remote DB for saving player information solve this problem ?
Forum: Code Snippets/Tutorials 06-15-2012, 10:19
Replies: 118
Views: 49,574
Posted By t3hNox
Re: [INC] SQLVault

This may be a random question but is it likely that there might be conflicts between sqlvault_ex include and SQLx module ?

I'm currently working on a plugin which uses both this include and SQLx...
Forum: Scripting Help 06-11-2012, 06:54
Replies: 9
Views: 2,412
Posted By t3hNox
Re: Changing Timeleft

Lol, I obviously meant "time left" not "time life" :)

@Liverwiz
The problem with that method is that if original time limit is, for example, 20 mins. and a map has been played for more than these...
Forum: Scripting Help 06-10-2012, 18:05
Replies: 9
Views: 2,412
Posted By t3hNox
Re: Changing Timeleft

I'm also interested in finding out how to alter the time life until map change.
Maybe there is an offset or anything like that ?

I've seen a method with getting mp_timeleft cvar pointer and later...
Forum: Code Snippets/Tutorials 06-07-2012, 17:49
Replies: 6
Views: 10,606
Posted By t3hNox
Re: [TUT] Class Specifiers (new static stock public const)

FINALLY.
It is actually a basic stuff, but it is not explained anywhere other than Pawn manual.

Thank you for this tutorial.
Forum: Scripting Help 05-22-2012, 13:13
Replies: 6
Views: 1,875
Posted By t3hNox
Re: Randomly spawn entity

This will help you with origins: https://forums.alliedmods.net/showthread.php?t=132500
Forum: Unapproved/Old Plugins 05-20-2012, 11:26
Replies: 14
Views: 7,620
Posted By t3hNox
Re: QuakeIII Portals

This looks really good !
Forum: Scripting Help 05-19-2012, 15:01
Replies: 5
Views: 1,824
Posted By t3hNox
Re: malloc in pawn?

Ok, thanks.
Forum: Scripting Help 05-19-2012, 13:08
Replies: 5
Views: 1,824
Posted By t3hNox
Re: malloc in pawn?

I would like to clearify something.
In terms of memory usage it means creating Array[33 char] would be more efficient than Array[33] ?

However, creating a simple variable (new SomeVar) would be...
Forum: Suggestions / Requests 05-12-2012, 13:37
Replies: 2
Views: 1,022
Posted By t3hNox
Re: How to calculate player's online activity ?

I think I've found the solution. Lol, it's actually very, very simple.
If anyone is interested:

X - total length of the time interval in which the online activity is measured.
Y - how long a...
Forum: Suggestions / Requests 05-12-2012, 07:53
Replies: 2
Views: 1,022
Posted By t3hNox
How to calculate player's online activity ?

I don't really need anyone to make this plugins for me but since I don't have any code I'm posting in this section.

So I'm looking for an optimal way for calculating an individual player online...
Forum: Scripting Help 04-02-2012, 14:17
Replies: 2
Views: 1,251
Posted By t3hNox
Re: Data structure doesn't work properly in native function

Thank you for your advice.

I changed the enum names to something more unique and also changed the plugin's name. After adding the "new" version of plugin to server everything worked as it was...
Forum: Scripting Help 04-01-2012, 08:33
Replies: 2
Views: 1,251
Posted By t3hNox
Data structure doesn't work properly in native function

Code:
...
enum _:PowerInfo
{
iTime,
szName[32],
szModel[32],
iColor[3]
}
Forum: Scripting Help 03-25-2012, 09:10
Replies: 15
Views: 1,990
Posted By t3hNox
Re: random (percents)

One of ways:
#define PERCENT 45 // % chance

if(random(100)+1 <= PERCENT) // +1 to avoid 0
{
//X percent chance is true
}
Forum: Scripting Help 03-25-2012, 08:02
Replies: 7
Views: 1,198
Posted By t3hNox
Re: Probably very simple mistake

With floats it works like this:

new Float:current_frame
pev(ent, pev_frame, current_frame);
Forum: Scripting Help 03-25-2012, 05:28
Replies: 1
Views: 656
Posted By t3hNox
Re: Sprite show delay

I might be wrong but you cannot change how long a sprite will be shown without sending this message several times (according to your needs). Although you can change the frame rate but it can make a...
Forum: Scripting Help 03-24-2012, 19:05
Replies: 10
Views: 3,116
Posted By t3hNox
Re: Place parachute only to CT

Just to clearify. Did you recompile the plugin and change map in server ?
Forum: Scripting Help 03-24-2012, 18:41
Replies: 4
Views: 896
Posted By t3hNox
Re: Need help, with my system

Try:
public eDeath(id) //function name
{
// Create a variable to store the attacker's id
new attacker = read_data( 1 )

// If a player was killed by a HeadShot, this will be used for the...
Showing results 1 to 25 of 214

 
Forum Jump

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


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