Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 168
Search took 0.01 seconds.
Search: Posts Made By: alien
Forum: Code Snippets/Tutorials 01-09-2009, 12:56
Replies: 29
Views: 33,773
Posted By alien
Re: Pawn Language Definition for notepad++

I hereby diagnose your problem: IE6.

I'll upload my own color scheme as soon as I get it done.
Forum: Scripting Help 12-27-2008, 05:31
Replies: 7
Views: 1,844
Posted By alien
Re: There is a trouble with my plugin...low fps in DS

Sorry for not directly answering your questions but what makes you think, that set/get_user_health would be the thing causing fps drop? I'm almost sure, you're talking about client's fps ... and...
Forum: Scripting Help 12-26-2008, 22:30
Replies: 7
Views: 3,332
Posted By alien
Re: Client info changed

I'm not really into query_client_cvar.
First, it's resource expensive and slow method.
Second, it's asynchronous ... what's not that bad really.
Third and most important reason is that you need to...
Forum: Scripting Help 12-22-2008, 20:34
Replies: 7
Views: 3,332
Posted By alien
Re: Client info changed

Hi butthead ...
client_infochanged is called, when a client changes something in 'info' structure (see 'setinfo' console command) that is not purely client-side.
Forum: Scripting Help 04-13-2008, 06:04
Replies: 12
Views: 2,752
Posted By alien
Re: .amxx file larger than .sma is there a meaning?

Hmm, I see.
But why is it like this? What are unitialized variables stored in a binary file for? I thought that an array is a memory block and all we need is it's declaration. But thank you for an...
Forum: Scripting Help 04-13-2008, 03:24
Replies: 12
Views: 2,752
Posted By alien
Re: .amxx file larger than .sma is there a meaning?

Yes, you're right. But could million (or 100-million cell array you used in your previous post) be considered as real-life example? :)
Forum: Scripting Help 04-13-2008, 02:11
Replies: 14
Views: 2,919
Posted By alien
Re: Get IP

Highest port should be 65535 :)
Forum: Scripting Help 04-13-2008, 02:03
Replies: 14
Views: 2,919
Posted By alien
Re: Get IP

Hi,


new ip[16]; // 16 is enough for IP w/o port
get_user_ip(id, ip, sizeof(ip) - 1, 1);
Forum: Scripting Help 04-13-2008, 01:57
Replies: 12
Views: 2,752
Posted By alien
Re: .amxx file larger than .sma is there a meaning?

Variables do almost no change to .amxx file size ... constants do. You need to realize that by including files (#include), you include plenty of constats (engine, fakemeta etc), un-stocked functions...
Forum: Scripting Help 04-13-2008, 01:49
Replies: 1
Views: 1,019
Posted By alien
Re: how do i make it sow view fade to black

Quoting Emp` ...

#define SECONDS_TO_SCREENFADE_UNITS(%1) ((1<<12) * (%1))

public BlackOut(id)
{
new time = 5 // in seconds
message_begin(MSG_ONE, gMsgScreen, {0,0,0}, id)
...
Forum: Scripting Help 04-12-2008, 17:02
Replies: 12
Views: 4,045
Posted By alien
Re: Find visible ents

Hello VEN, does any entity have bones?
Forum: Scripting Help 04-11-2008, 13:59
Replies: 12
Views: 4,045
Posted By alien
Re: Find visible ents

Actually, not really ... that's why I asked him about partially visible entities. If you do trace to entities (origin -> origin), you can hit some small object (let's say a lamp), but entity will...
Forum: Scripting Help 04-11-2008, 11:50
Replies: 12
Views: 4,045
Posted By alien
Re: Find visible ents

Don't use code above then. It will list visible entities (either by EF_NODRAW or render ammount).

The problem with a wall between is much more complex one ...
But I think I have an idea, just...
Forum: Scripting Help 04-11-2008, 11:43
Replies: 12
Views: 4,045
Posted By alien
Re: Find visible ents

Do you actually want to exclude entities that are behind the walls ??
Forum: Scripting Help 04-11-2008, 11:09
Replies: 1
Views: 800
Posted By alien
Re: print_ceneter

I think I've been trying but didn't succeed. Well, maybe someone else would know ...
Forum: Scripting Help 04-11-2008, 10:56
Replies: 7
Views: 1,595
Posted By alien
Re: Change map

random_num(0, 4) returns values from 0 and 4 inclusively.
0, 1, 2, 3, 4 stands for 5 values.
Forum: Scripting Help 04-11-2008, 10:50
Replies: 12
Views: 4,045
Posted By alien
Re: Find visible ents

Hi, I hope this'll help ...
But had no time to test it ... so give me a feedback if something ...

center_id - id of entity you search around
radius - function's effective radius (in units)...
Forum: Scripting Help 04-09-2008, 18:34
Replies: 15
Views: 4,267
Posted By alien
Re: Center message (like "Loading...")

That "left" is above or below the chat?
Forum: Scripting Help 04-08-2008, 21:48
Replies: 5
Views: 1,567
Posted By alien
Re: Variable Types

There is also %x and %X which result in hexadecimal representation of integer.
Forum: Scripting Help 04-06-2008, 23:07
Replies: 6
Views: 1,575
Posted By alien
Re: Strange think order

It's also very strange that the differences above approximate 0.01 sec.
Forum: Scripting Help 04-06-2008, 23:04
Replies: 6
Views: 1,575
Posted By alien
Re: Strange think order

Hello VEN, try this please:

public plugin_init() {
register_forward(FM_CmdStart, "fwd_cmd_start");

return PLUGIN_CONTINUE;
}

public fwd_cmd_start(pid) {
static Float:prev_t[32];
Forum: Scripting Help 04-01-2008, 00:44
Replies: 15
Views: 3,530
Posted By alien
Re: Reading from open parameter?

Oh cheers Arkshine ... I'm going to get rid of that {Float, Sql, Result, _} thing right away.
Forum: Scripting Help 04-01-2008, 00:42
Replies: 5
Views: 2,112
Posted By alien
Re: about fakemeta

And may I have a question too? What's the difference between set_pev(id, pev_origin, origin) and engfunc(EngFunc_SetOrigin, id, origin)? Why, since the second one works fine, set_pev does nothing...
Forum: Scripting Help 04-01-2008, 00:34
Replies: 15
Views: 3,530
Posted By alien
Re: Reading from open parameter?

Hello v3x, I recommend this (http://www.amxmodx.org/funcwiki.php?go=func&id=1075) function. Sorry if I get you wrong ... tyred.

Oh, and an example:

stock MyFunc(id, msg[], {Float, _}:...)
{
...
Forum: Scripting Help 03-31-2008, 00:08
Replies: 4
Views: 1,864
Posted By alien
Re: Menu Formatting Help

Could you show us an initialization of gszMenu, please?
Showing results 1 to 25 of 168

 
Forum Jump

All times are GMT -4. The time now is 07:59.


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