Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: mrockxkingbutt on March 13, 2014, 05:52:21 pm

Title: Auto-Kick For Pings [ Snippet ]
Post by: mrockxkingbutt on March 13, 2014, 05:52:21 pm
OnPlayerConnect

Quote
CheckPlayer(playerid);

OnPlayerDeath

Quote
CheckPlayer(playerid);

OnPlayerSpawn

Quote
CheckPlayer(playerid);

[pawn]public CheckPlayer(playerid) {
if(GetPlayerPing(playerid) > 700) {
Kick(playerid);
SendClientMessage(playerid,COLOR_RED," Kicked For Pings Are Up Than 690m ");
}
return 1;
}[/pawn]

Thats All!
Title: Re: Auto-Kick For Pings [ Snippet ]
Post by: MatheuS on March 13, 2014, 06:41:33 pm
in my opinion putting only OnPlayerSpawn would be better

simple and good  :P
Title: Re: Auto-Kick For Pings [ Snippet ]
Post by: rathore on March 13, 2014, 11:21:06 pm
Good
Title: Re: Auto-Kick For Pings [ Snippet ]
Post by: sseebbyy on March 17, 2014, 05:34:46 pm
Why you added "[ Snippet ]" in the title, since you already posted in the Snippet Board ? :|



About the script:
When a player joins to the server, it will have an incredible big ping until it is refreshing.
So, if I'm not wrong, your script will kick every player.
Title: Re: Auto-Kick For Pings [ Snippet ]
Post by: mrockxkingbutt on March 17, 2014, 05:36:23 pm
Why you added "[ Snippet ]" in the title, since you already posted in the Snippet Board ? :|



About the script:
When a player joins to the server, it will have an incredible big ping until it is refreshing.
So, if I'm not wrong, your script will kick every player.

i dont think so man!

if it happens .. we will can the use of i > maxplayers etc

and it will be added as timer!