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

Showing results 1 to 25 of 376
Search took 0.01 seconds.
Search: Posts Made By: vamppa
Forum: Scripting Help 06-13-2014, 09:29
Replies: 17
Views: 2,426
Posted By vamppa
Re: set_task & player loop.

alright was looking to be certain it doesn't effect shot registration so I can inform other players about it.
Im learning afterall.

Thanks everyone for replying.
Forum: Scripting Help 06-13-2014, 07:37
Replies: 17
Views: 2,426
Posted By vamppa
Re: set_task & player loop.

To be absolutely certain looping through all players with get_players in a global set_task to check a cvar value of players would not cause a sudden dip in performance?
with a lot of players inside...
Forum: Scripting Help 06-13-2014, 07:26
Replies: 17
Views: 2,426
Posted By vamppa
Forum: Scripting Help 06-13-2014, 06:54
Replies: 11
Views: 1,425
Posted By vamppa
Re: Player indexing problem

Yes thought I had that work around already set. perhaps is a different one.
Forum: Scripting Help 06-13-2014, 02:17
Replies: 17
Views: 2,426
Posted By vamppa
Re: set_task & player loop.

The decision is basically: Is a frequent global switch worse then looping through players on a lower frequency?
The question: How would you check one client cvar on a low frequency if idea...
Forum: Scripting Help 06-13-2014, 01:47
Replies: 17
Views: 2,426
Posted By vamppa
Re: set_task & player loop.

What the code does is query_client_cvar.
Previously I had done this through individual tasks.
Until idea required code to check a global variable.


previous reasoning for individual tasks was...
Forum: Scripting Help 06-13-2014, 01:04
Replies: 11
Views: 1,425
Posted By vamppa
Re: Player indexing problem

Yeah I was mistaken to think it was also caused by a bug, it looks to be is only caused by valve. (In particular fighting redirecting for some time)
Do understand why valve implants these blocks....
Forum: Scripting Help 06-12-2014, 08:40
Replies: 11
Views: 1,425
Posted By vamppa
Re: Player indexing problem

Looks like issue is somewhat found.
Certain clients get this Server tried to send invalid command:"connect 81.93.251.130:27015"
https://forums.alliedmods.net/showthread.php?t=160523
...
Forum: Scripting Help 06-12-2014, 01:09
Replies: 11
Views: 1,425
Posted By vamppa
Re: Player indexing problem

I see could I send the code via PM?
Forum: Scripting Help 06-12-2014, 00:55
Replies: 17
Views: 2,426
Posted By vamppa
Re: set_task & player loop.

Shit, was hoping to keep it simple. : p
Forum: Scripting Help 06-11-2014, 19:24
Replies: 17
Views: 2,426
Posted By vamppa
set_task & player loop.

Lo

Im wondering what is more efficient when you need to do something frequent on each player.
The frequency is about every 20 seconds.

- Setting a global set_task then loop through all the...
Forum: Scripting Help 06-11-2014, 19:08
Replies: 11
Views: 1,425
Posted By vamppa
Re: Player indexing problem

Then what happens when a player disconnects and more players join before map timeleft.
Eventually other players would get the index number a previous player had?

What if lets say a users...
Forum: Scripting Help 06-10-2014, 17:28
Replies: 11
Views: 1,425
Posted By vamppa
Player indexing problem

Oi

Im having some issue when code on player indexing is passed on when it should not be.
wondering how half-life indexes players and if the loop through max players is just a loop and not...
Forum: Scripting Help 05-26-2014, 07:40
Replies: 2
Views: 823
Posted By vamppa
client_cmd vs console_cmd

When the situation fits to use console_cmd am I right in saying it is a little more efficient to use apposed to client_cmd?

static cell AMX_NATIVE_CALL console_cmd(AMX *amx, cell *params) /* 2...
Forum: Scripting Help 05-24-2014, 04:25
Replies: 10
Views: 1,565
Posted By vamppa
Re: Voting system.

Ok sweet thanks.

How about changing its color is that possible?
Another question if im going to make lets say 3 different votes, would I have to duplicate #include <amxmodx>

//This will hold...
Forum: Scripting Help 05-23-2014, 17:23
Replies: 10
Views: 1,565
Posted By vamppa
Re: Voting system.

also menu_destroy( gVoteMenu ); does not work. pressing slot1 or slot2 does close the menu.
Is there an alternative way to close it?
Forum: Scripting Help 05-23-2014, 16:59
Replies: 10
Views: 1,565
Posted By vamppa
Re: Voting system.

Ok got it working.
Is it possible to change the color of the menu? or use hud message instead?
Forum: Scripting Help 05-23-2014, 09:30
Replies: 10
Views: 1,565
Posted By vamppa
Re: Voting system.

yeah infact initial code does something different im using shut down aka quit as an easy example.
Im just looking to get the voting system to work seeing im not familiar with it.
Likely initial...
Forum: Scripting Help 05-23-2014, 08:57
Replies: 10
Views: 1,565
Posted By vamppa
Re: Voting system.

Can someone give me a working sample which I can work with?
It is easier for me to learn that way.

Heres the previous code.


#include <amxmodx>
#include <amxmisc>

new gVotes[2];
Forum: Scripting Help 05-21-2014, 05:14
Replies: 10
Views: 1,565
Posted By vamppa
Voting system.

Hi,

Could someone show me how to do a voting system for lets say restarting the server? (server_cmd quit).
Im trying to get a voting system to work last time I did it crashed the server.
is...
Forum: Suggestions / Requests 05-07-2014, 19:25
Replies: 3
Views: 629
Posted By vamppa
Forum: Scripting Help 01-15-2014, 09:00
Replies: 5
Views: 1,024
Posted By vamppa
Re: hl1 map end

yeah ive tried searching before posting.
came across this

register_event("30", "EV_InterMission", "a" );which ive tried to test with client_print(0,print_chat,"Map end")It didn't work.
Is the...
Forum: Scripting Help 01-14-2014, 23:32
Replies: 5
Views: 1,024
Posted By vamppa
hl1 map end

Hello

Id like to show a hud message to client during the Intermission, when the scoreboard is shown before map end.
How would that be done?

greetz
Forum: Scripting Help 12-06-2013, 05:14
Replies: 1
Views: 465
Posted By vamppa
Re: > greater

nevermind sorted it.
Forum: Scripting Help 12-06-2013, 04:40
Replies: 1
Views: 465
Posted By vamppa
> greater

public time_check()
{
new currenttime[5]
get_time("%H:%M", currenttime, 5)
if (>(currenttime,"09:10")) // <-----------------
{
server_cmd("exec startdarkness.cfg")
}...
Showing results 1 to 25 of 376

 
Forum Jump

All times are GMT -4. The time now is 12:39.


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