AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Snapshot (https://forums.alliedmods.net/showthread.php?t=50632)

courage666 01-30-2007 16:10

Snapshot
 
hi, i made this little script:
client_cmd(read_data(1), "snapshot")
works fine... i tryed to make a timer but nothing...
how can i make a timer and on its exit the script will send to clients cmd?

[ --<-@ ] Black Rose 01-30-2007 18:06

Re: Snapshot
 
What language is that?

XxAvalanchexX 01-30-2007 18:34

Re: Snapshot
 
Use set_task. For example, this will delay a function by 15 seconds.

Code:
public some_function(id) {      set_task(15.0,"next_function",id); } public next_function(id) {      client_cmd(id,"snapshot"); }

courage666 01-30-2007 19:46

Re: Snapshot
 
thx :) takes a snapshot every 10 minutes! now i can easly see who has wh!

lunarwolfx 01-31-2007 00:01

Re: Snapshot
 
Quote:

thx takes a snapshot every 10 minutes! now i can easly see who has wh!
in that case, you should consider looking at hawk's tutorial on how to avoid using set_task, so that you don't abuse it in the future and cause a really laggy plugin.

http://forums.alliedmods.net/showthread.php?t=43049

dutchmeat 01-31-2007 13:50

Re: Snapshot
 
You can't use amxx to see if someone has wh, or any other hack.
This snapshot function is nothing more then creating a screenshot on their machines, so on the CLIENTS machines.
You need them on the server, which means you will have to create a link with either sockets or use another way to transfer those screenshots to the server.
But that can easily be prevented by putting up a firewall, or disabling ports.
That's why i think you can't make some kind of anticheat plugin with Amxx because it has too much limits.
Cheats should be caught at the beginning, and that's the hook of a program, or dll to the game, or the video memory.

dutchie out...

MaximusBrood 01-31-2007 17:43

Re: Snapshot
 
Quote:

Originally Posted by lunarwolfx (Post 433734)
in that case, you should consider looking at hawk's tutorial on how to avoid using set_task, so that you don't abuse it in the future and cause a really laggy plugin.

Uch, you have no idea what you are talking about.
There is (apart from spawning an entity) no other way to get the same effects.
Spawning an entity is more prone to errors, and will make it needlessly complicated.

lunarwolfx 01-31-2007 18:09

Re: Snapshot
 
Quote:

Uch, you have no idea what you are talking about.
There is (apart from spawning an entity) no other way to get the same effects.
Spawning an entity is more prone to errors, and will make it needlessly complicated.
why does that mean I have no idea what I'm talking about?

I didn't say it wouldn't be more complicated than a set_task, and you already mentioned yourself that you can spawn an entity as another method.

he did say he's going to use set_task to take a snapshot every 10 minutes, thus it's one of the points covered in hawk's tutorial.

If you mean that it's totally pointless for this type of plugin, then I agree with you. If it were me, I would stick with set_task for something that occurs every 10 minutes, but the point of my statement is so that he knows there are other options that are less expensive than set_task for future references.

Zenith77 01-31-2007 19:41

Re: Snapshot
 
Actually set_task() would be less expensive in this case. You're over complicating things.

lunarwolfx 01-31-2007 20:54

Re: Snapshot
 
oh, in that case, you have every right to say I don't know what I'm talking about.


All times are GMT -4. The time now is 00:34.

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