SetPlayerChatBubble - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerChatBubble (
/showthread.php?tid=428452)
SetPlayerChatBubble -
Blackazur - 05.04.2013
Hello, i have an question can that Chat Bubble lag?
Код:
forward pausecheck();
public pausecheck()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new PausedSeconds = gettime()-PauseTime[i];
if(PausedSeconds > 5)
{
SetPlayerChatBubble(i, "Paused", COLOR_YELLOW, 100.0, 10000);
}
}
return 1;
}
Re: SetPlayerChatBubble -
Konstantinos - 05.04.2013
No, it doesn't. Unless, you're using the pausecheck timer less than 500 milliseconds. 1000 or 2000 is fine.
AW: SetPlayerChatBubble -
Blackazur - 05.04.2013
Код:
SetTimer("pausecheck", 4321, true);
Is that okay, Dwane?
Re: SetPlayerChatBubble -
Konstantinos - 05.04.2013
I'd use rounding (4000), but it's fine.