Very Easy Anti-Ping And Ping TextDraw -
giorgosdim12 - 20.04.2015
Hey Guys!
i'am create one very very easy script (Anti-Ping and Ping TextDraw)
Code Here
http://pastebin.com/j6fCyrcC
Thanks!.
Re: Very Easy Anti-Ping And Ping TextDraw -
JessThompson - 20.04.2015
Little tip. Add images else people tend not to use your filterscript.
Re: Very Easy Anti-Ping And Ping TextDraw -
giorgosdim12 - 21.04.2015
ok
now here is one photo and new link.
http://pastebin.com/nWrJ74JC
And Photo:
http://postimg.org/image/3m1uatvjl/
Re: Very Easy Anti-Ping And Ping TextDraw -
lanix - 21.04.2015
Nice
Re: Very Easy Anti-Ping And Ping TextDraw -
Michael B - 22.04.2015
You should redesign the tetdraw. The color and the location are awfull. Per total is good.
Re: Very Easy Anti-Ping And Ping TextDraw -
bakerleo - 20.09.2017
Please add some more pictures. Otherwise it looks nice and design is also good. Great work.
Re: Very Easy Anti-Ping And Ping TextDraw -
DonaldDuck - 20.09.2017
Nice for beginner but i dont like the color.
Re: Very Easy Anti-Ping And Ping TextDraw -
Meller - 20.09.2017
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
Re: Very Easy Anti-Ping And Ping TextDraw -
Deadpoop - 20.09.2017
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(playerid, Ping_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.
Re: Very Easy Anti-Ping And Ping TextDraw -
SonnyGamer - 20.09.2017
Sorry but I don't like it.
1/10
Re: Very Easy Anti-Ping And Ping TextDraw -
alicefrazier - 23.11.2017
Thanks for this. I like it but need some changes in color.
Re: Very Easy Anti-Ping And Ping TextDraw -
billy1337samp - 23.11.2017
very ugly.