[FilterScript] Very Easy Anti-Ping And Ping TextDraw
#1

Hey Guys!

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

Code Here

http://pastebin.com/j6fCyrcC

Thanks!.
Reply
#2

Little tip. Add images else people tend not to use your filterscript.
Reply
#3

ok

now here is one photo and new link.

http://pastebin.com/nWrJ74JC

And Photo:

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

Reply
#4

Nice
Reply
#5

You should redesign the tetdraw. The color and the location are awfull. Per total is good.
Reply
#6

Please add some more pictures. Otherwise it looks nice and design is also good. Great work.
Reply
#7

Nice for beginner but i dont like the color.
Reply
#8

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
Reply
#9

i have a question

why

PHP код:
new ping[MAX_PLAYERS];
ping[playerid] = GetPlayerPing(playerid);
if(
GetPlayerPing(playerid) > 1000)return SendKick(playerid); 
you can do that instead:

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

PHP код:
public OnPlayerDisconnect(playerid)
{
    
TextDrawDestroy(Ping_Text[playerid]);
    return 
1;

also why

PHP код:
new pings[256];
reason[256
when this is enough:

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

PHP код:

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.
Reply
#10

Sorry but I don't like it.
1/10
Reply
#11

Thanks for this. I like it but need some changes in color.
Reply
#12

very ugly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)