Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define MAKSIMALAN_PING 1000
- forward ProvjeriPing(playerid);
- new PingTajmer[MAX_PLAYERS];
- public OnPlayerSpawn(playerid)
- {
- PingTajmer[playerid] = SetTimerEx("ProvjeriPing",1000,1,"i",playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- KillTimer(PingTajmer[playerid]);
- return 1;
- }
- public ProvjeriPing(playerid)
- {
- if(GetPlayerPing(playerid) > MAKSIMALAN_PING) Kick(playerid);
- }
Advertisement
Add Comment
Please, Sign In to add comment