Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: mrockxkingbutt on March 13, 2014, 05:52:21 pm
-
OnPlayerConnect
CheckPlayer(playerid);
OnPlayerDeath
CheckPlayer(playerid);
OnPlayerSpawn
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!
-
in my opinion putting only OnPlayerSpawn would be better
simple and good :P
-
Good
-
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.
-
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!