SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 20/04/2015, 07:21 PM   #1
giorgosdim12
Big Clucker
 
giorgosdim12's Avatar
 
Join Date: Jun 2014
Posts: 80
Reputation: 13
Default Very Easy Anti-Ping And Ping TextDraw

Hey Guys!

i'am create one very very easy script (Anti-Ping and Ping TextDraw)

Code Here

http://pastebin.com/j6fCyrcC

Thanks!.
giorgosdim12 is offline   Reply With Quote
Old 20/04/2015, 09:18 PM   #2
JessThompson
Huge Clucker
 
JessThompson's Avatar
 
Join Date: Dec 2013
Location: Developer Lodge
Posts: 418
Reputation: 22
Default Re: Very Easy Anti-Ping And Ping TextDraw

Little tip. Add images else people tend not to use your filterscript.
JessThompson is offline   Reply With Quote
Old 21/04/2015, 12:18 PM   #3
giorgosdim12
Big Clucker
 
giorgosdim12's Avatar
 
Join Date: Jun 2014
Posts: 80
Reputation: 13
Default Re: Very Easy Anti-Ping And Ping TextDraw

ok

now here is one photo and new link.

http://pastebin.com/nWrJ74JC

And Photo:

http://postimg.org/image/3m1uatvjl/

__________________
----------------------------------------------------------
|
|
~ Very Easy Anti-Ping And Ping TextDraw : |
http://forum.sa-mp.com/showthread.php?t=571643 ~ |
|
|
|
----------------------------------------------------------
giorgosdim12 is offline   Reply With Quote
Old 21/04/2015, 02:27 PM   #4
lanix
Big Clucker
 
lanix's Avatar
 
Join Date: Dec 2014
Location: Croatia
Posts: 158
Reputation: 3
Default Re: Very Easy Anti-Ping And Ping TextDraw

Nice
__________________
Simple Anticheat: http://forum.sa-mp.com/showthread.php?t=570399
lanix is offline   Reply With Quote
Old 22/04/2015, 06:14 PM   #5
Michael B
High-roller
 
Michael B's Avatar
 
Join Date: Oct 2014
Location: Romania
Posts: 1,178
Reputation: 127
Default Re: Very Easy Anti-Ping And Ping TextDraw

You should redesign the tetdraw. The color and the location are awfull. Per total is good.
__________________
Michael B is offline   Reply With Quote
Old 20/09/2017, 08:02 AM   #6
bakerleo
Little Clucker
 
Join Date: Sep 2017
Location: UK
Posts: 3
Reputation: 0
Default Re: Very Easy Anti-Ping And Ping TextDraw

Please add some more pictures. Otherwise it looks nice and design is also good. Great work.
bakerleo is offline   Reply With Quote
Old 20/09/2017, 11:32 AM   #7
DonaldDuck
Banned
 
Join Date: Jun 2017
Location: Phillipines
Posts: 361
Reputation: 91
Default Re: Very Easy Anti-Ping And Ping TextDraw

Nice for beginner but i dont like the color.
DonaldDuck is offline   Reply With Quote
Old 20/09/2017, 11:55 AM   #8
Meller
Banned
 
Join Date: Dec 2016
Posts: 635
Reputation: 132
Default Re: Very Easy Anti-Ping And Ping TextDraw

Code is horrible, style is horrible and replies are filled with spam posts by newcomers that don't know shit but thinks post counts are cool.

Edit:
Why did we all just bump a 2k15 post? lmfao
Meller is offline   Reply With Quote
Old 20/09/2017, 11:58 AM   #9
Deadpoop
Big Clucker
 
Deadpoop's Avatar
 
Join Date: Jul 2016
Posts: 124
Reputation: 5
Default Re: Very Easy Anti-Ping And Ping TextDraw

i have a question

why

PHP Code:
new ping[MAX_PLAYERS];

ping[playerid] = GetPlayerPing(playerid);
if(
GetPlayerPing(playerid) > 1000)return SendKick(playerid); 
you can do that instead:

PHP Code:
if(GetPlayerPing(playerid) > 1000)return SendKick(playerid); 
also you should destroy the textdraw when player leaves

PHP Code:
public OnPlayerDisconnect(playerid)
{
    
TextDrawDestroy(Ping_Text[playerid]);
    return 
1;

also why

PHP Code:
new pings[256];
reason[256
when this is enough:

PHP Code:
new pings[12];
reason[124
and you dont need to use stocks (you are not creating an include!)

PHP Code:

DisplayPing
(playerid)
{
ping[playerid] = GetPlayerPing(playerid);
if(
GetPlayerPing(playerid) > 1000)return SendKick(playerid);
else if(
GetPlayerPing(playerid) < 1000)
{
new 
pings[12];
format(pings,sizeof(pings),"Ping:%d",GetPlayerPing(playerid));
TextDrawSetString(Ping_Text[playerid], pings);
TextDrawShowForPlayer(playeridPing_Text[playerid]);
}
return 
1;
}


SendKick(playerid)
{
new 
reason[124],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(reason,sizeof(reason),"{FFFFFF}~ Player {00FF00}%s{FFFFFF} has been auto kicked.(reason:{FFFF00} MAX PING(1000){FFFFFF}) ~",name);
SendClientMessageToAll(-1,reason);
Kick(playerid);
return 
1;

thats all.
__________________
RELEASES:
































Deadpoop is offline   Reply With Quote
Old 20/09/2017, 12:04 PM   #10
SonnyGamer
Huge Clucker
 
SonnyGamer's Avatar
 
Join Date: Jun 2017
Location: Anime World
Posts: 209
Reputation: 50
Default Re: Very Easy Anti-Ping And Ping TextDraw

Sorry but I don't like it.
1/10
__________________
[The Matrix™ Stunt©] > 198.245.51.214:2017
Join now!
SonnyGamer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Anti-Flood / Anti-Repeat + High Ping Kicker KoczkaHUN Filterscripts 21 25/01/2014 09:44 PM
[FilterScript] Anti-Ping Jankingston Filterscripts 6 18/11/2013 04:36 PM
IP & PING Retruns me same ping as player which executes the command MiGu3X Scripting Help 3 30/03/2013 01:11 AM
[FilterScript] Anti Ping v1.0 Jonas_Alves Filterscripts 6 22/08/2012 03:33 PM
[FilterScript] [FS]Zadmin2.0|Admin System + Anticheat + Anti-flood + Anti high ping [ZFM]Zuc Filterscripts 32 18/06/2012 05:29 PM


All times are GMT. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.