Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 73
Search took 0.01 seconds.
Search: Posts Made By: shauli
Forum: Scripting Help 06-15-2020, 13:54
Replies: 11
Views: 1,644
Posted By shauli
Re: ==, >, <, !=, what else?

Same as HamletEagle said, but just wanted to add that if(10 < cLevel < 20) will also work in Pawn, but won't work in most programming languages.
Forum: Scripting Help 06-01-2020, 13:27
Replies: 9
Views: 1,243
Posted By shauli
Re: call a function when certain cvar changes its value?

In newer amxx versions you can use hook_cvar_change (http://amxmodx.org/api/cvars/hook_cvar_change), or alternatively bind_pcvar_* (http://amxmodx.org/api/cvars/bind_pcvar_num) for certain purposes.
Forum: Scripting Help 08-06-2019, 10:48
Replies: 15
Views: 2,380
Posted By shauli
Re: Menu items limit

Don't forget to include colors, numbers and menu title. This is client limitation, not amxx. Everything counts.
Each item starts with "\r1. \w" which is 7 extra characters.
Forum: Scripting Help 08-06-2019, 09:20
Replies: 15
Views: 2,380
Posted By shauli
Re: Menu items limit

You can't bypass that limit. Maybe the item will work, but it will still be invisible.
Best thing to do is to remove some characters and colors. In your case i'd make an header of "Name | SteamID |...
Forum: Scripting Help 02-08-2019, 08:04
Replies: 5
Views: 1,197
Posted By shauli
Re: How to check is Player's Team Changed by an Admin?

Wait, what do you mean?
I don't think kicking spectators is the right way, you should block them from joining this team from the start.

There is a cvar for this such as allow_spectators, or even...
Forum: Scripting Help 02-06-2019, 13:14
Replies: 27
Views: 3,038
Posted By shauli
Re: motd prints all playing players in rows

This one has many problems. It's probably works fine when you test it alone but no way it will work when your server is full. It doesn't check all players.

You should use the one eat1k posted. Try...
Forum: Scripting Help 01-31-2019, 04:25
Replies: 14
Views: 7,261
Posted By shauli
Re: [SOLVED] Array sizes do not match, or destination array is too small

I was talking about the index, not the size.
g_Stats[i][4] will return the 5th char in Auth, g_Stats[i][83] (or something like that) will be Objective.
Forum: Scripting Help 01-30-2019, 10:59
Replies: 14
Views: 7,261
Posted By shauli
Re: [SOLVED] Array sizes do not match, or destination array is too small

g_Stats[i][Objective] will be MAX_AUTHID_LENGTH+MAX_NAME_LENGTH+STATSX_MAX_STATS+MAX_BODYHITS, something like 83 or so, not 4. So the compiler reads it as 83 + STATSX_MAX_OBJECTIVE instead of just...
Forum: Scripting Help 01-18-2019, 12:20
Replies: 24
Views: 4,197
Posted By shauli
Re: Can't figure this out :)

pokezao is right, it's probably a Float value. I wasn't sure because you used integer and Bugsy used Float. Anyway, try this:

formatName( id, string[ ], len )
{
new pos = get_user_name(...
Forum: Scripting Help 01-18-2019, 10:36
Replies: 24
Views: 4,197
Posted By shauli
Re: Can't figure this out :)

Try this one maybe:

formatName( id, string[ ], len )
{
new pos = get_user_name( id, string, len ), temp = pos, skill;
get_user_skill( id, skill );

if( string[ pos - 1 ] == ']' )...
Forum: Scripting Help 01-16-2019, 05:21
Replies: 24
Views: 4,197
Posted By shauli
Re: Can't figure this out :)

public FwdPlayerSpawnPost( id )
{
if( is_user_alive( id ) )
{
new szName[ 32 ]
get_user_info( id, "name", szName, charsmax( szName ) ) //get user name
...
Forum: Scripting Help 01-09-2019, 10:16
Replies: 12
ACC
Views: 2,131
Posted By shauli
Re: ACC

You didn't use get_user_stats or whatever it's called. 'stats' is always empty.
Forum: Scripting Help 01-04-2019, 17:40
Replies: 7
Views: 1,372
Posted By shauli
Re: pick 6 ready players

AMXX 1.8.3:

public test()
{
new players[6], ret;
ret = getRandom(players, sizeof players);

//ret = amount of players returned (maybe lower than 6 if not enough are ready)
}
Forum: Scripting Help 12-31-2018, 11:39
Replies: 13
Views: 2,128
Posted By shauli
Re: old origin (fall damage)

You mean that the origin is in the air or it's on the ground but he's falling because he has some velocity?
If it's velocity, just reset it.

Also, there's something similar on this plugin, you...
Forum: Scripting Help 12-23-2018, 09:52
Replies: 6
Views: 1,565
Posted By shauli
Re: Saving scores after sv_restart 1?

That's an important sentence that will surely get you more help, it's nice to hear.
And yes, it's possible.

Basically there are major 2 problems here:

1. You've created the variables "frags"...
Forum: Suggestions / Requests 12-11-2018, 09:51
Replies: 19
Views: 2,422
Posted By shauli
Re: How to get this menu

You didn't follow the instructions. Read again the "Installation Instructions" in the link you gave us. Read it carefully.
Forum: Scripting Help 12-04-2018, 08:59
Replies: 10
Views: 2,357
Posted By shauli
Re: DATETIME (yyyy-mm-dd hh:mm:ss) Difference in minutes

parse_time (http://amxmodx.org/api/amxmodx/parse_time) will be perfect here:

new iTime, iTimeDif;
new refDate[ ] = "2018-12-02 12:03:45";

iTime = parse_time(refDate, "%Y-%m-%d...
Forum: Suggestions / Requests 11-29-2018, 03:10
Replies: 3
Views: 3,874
Posted By shauli
Re: no password set. modify msg

I found this magical Orpheu function from Arkshine:
https://forums.alliedmods.net/showpost.php?p=1552367&postcount=17

So yes it's probably possible. Should be way easier then what he did there,...
Forum: Scripting Help 11-27-2018, 05:21
Replies: 2
Views: 1,016
Posted By shauli
Re: How can I do only 1 Terrorist?

Move this line:
new target = iPlayers[random(i)]
to before the for loop starts, because you want to get the random player only 1 time. Also change random(i) to random(iNum).

The is_user_alive...
Forum: Scripting Help 11-25-2018, 19:59
Replies: 5
Views: 1,262
Posted By shauli
Re: sorting floats+id

I don't know if you're involved in the new AMXX version, but is there a chance of us getting a "cmp" stock in one of the default includes? Just like floats have one (floatcmp)?
Forum: Scripting Help 11-14-2018, 18:58
Replies: 5
Views: 1,150
Posted By shauli
Re: Print in yellow to console

Someone? No one has ever tried it?
Forum: Scripting Help 11-11-2018, 06:03
Replies: 27
Views: 3,356
Posted By shauli
Re: catch on client_disconnect

If you do that then save the new terrorist origin immediately after teleporting him, for the rare cases that the new terrorist will instantly retry before the loop happens.
Forum: Suggestions / Requests 11-08-2018, 18:19
Replies: 10
Views: 2,037
Posted By shauli
Re: Right-to-left symbols chat

Can you give me a sentence for example of how it's supposed to be and how it's actually printed now? (without any plugin?)

thanks.
Forum: Suggestions / Requests 11-08-2018, 06:42
Replies: 10
Views: 2,037
Posted By shauli
Re: Right-to-left symbols chat

How's it now? It prints Arabic chat but in reverse or what?
Forum: Scripting Help 11-05-2018, 06:34
Replies: 11
Views: 2,549
Posted By shauli
Re: Doubt Chromchat vs ColorChat

That's not a question of which one is better, it's about the features. CromChat has a lot of features compared to the regular stock (or client_print_color), so you should pick one based on what...
Showing results 1 to 25 of 73

 
Forum Jump

All times are GMT -4. The time now is 18:48.


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