Which callback?
#1

Hi guys,
I want to know which callback should we put things like if(getplayerping(playerid) == 1000) , those are when he is "Playing" not spawning , connecting etc. , Where should I put this?
Reply
#2

In a Timer
Reply
#3

Sorry for bumping but , How to make a timer for that?
Reply
#4

like this
Код HTML:
if(getplayerping(playerid) == 1000) return SetTimerEx("GetPlayerPingTimer", 1000, 0, "i", playerid);
and then you do

Код HTML:
function GetPlayerPingTimer(playerid)
{
     Kick(playerid)
}
Reply
#5

Better use y_timers:

Код:
timer PlayerPing[1000]
{
      // do whatever you want
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)