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 3
1
2
3
>
Showing results 1 to 25 of 73
Search took
0.02
seconds.
Search:
Posts Made By:
shauli
Forum:
Scripting Help
06-15-2020, 13:54
Replies:
11
==, >, <, !=, what else?
Views:
1,646
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
call a function when certain cvar changes its value?
Views:
1,248
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
Solved
Menu items limit
Views:
2,391
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
Solved
Menu items limit
Views:
2,391
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
How to check is Player's Team Changed by an Admin?
Views:
1,198
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
motd prints all playing players in rows
Views:
3,042
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
[SOLVED] Array sizes do not match, or destination array is too small
Views:
7,298
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
[SOLVED] Array sizes do not match, or destination array is too small
Views:
7,298
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
Solved
Add XP/skill to players name
Views:
4,217
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
Solved
Add XP/skill to players name
Views:
4,217
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
Solved
Add XP/skill to players name
Views:
4,217
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,137
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
pick 6 ready players
Views:
1,374
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
old origin (fall damage)
Views:
2,131
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
Saving scores after sv_restart 1?
Views:
1,567
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
Solved
How to get this menu
Views:
2,431
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
DATETIME (yyyy-mm-dd hh:mm:ss) Difference in minutes
Views:
2,362
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
no password set. modify msg
Views:
3,887
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
How can I do only 1 Terrorist?
Views:
1,020
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
sorting floats+id
Views:
1,274
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
Print in yellow to console
Views:
1,156
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
catch on client_disconnect
Views:
3,366
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
Right-to-left symbols chat
Views:
2,043
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
Right-to-left symbols chat
Views:
2,043
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
Doubt Chromchat vs ColorChat
Views:
2,564
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
Page 1 of 3
1
2
3
>
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
15:26
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode