Posts: 490
Threads: 122
Joined: Feb 2010
Reputation:
0
where do i put if(GetPlayerPing(playerid) > 1000) Kick(playerid); please help
Posts: 746
Threads: 81
Joined: Aug 2010
Reputation:
0
I think OnPlayerSpawn.
Because when you do it OnPlayerConnect, it will kick everyone, because right when you join the server you get a ping like above 60000(but still not sure)
Posts: 1,599
Threads: 164
Joined: Dec 2010
Reputation:
0
Hum, i am not sure, i think it is above OnGameModeInit coz OnPlayerSpawn just check when you spawn.... If you be with 30000 ping only when you die, you get kicked... By the way, try it, i am not 100% sure!
Or make a timer to check ping all 1 minute for example, but i don't know if this will lagg....