OnPlayerUpdate Lag
#8

Код:
new updatetimer[MAX_PLAYERS];


OnGameModeInit:
----
updatetimer[playerid] = SetTimerEx("update", 1000, true, "d", playerid);
----


forward update(playerid);
public update(playerid)
{
	for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
	{
	    if(GetPlayerWantedLevel(playerid) >= 1)
		{
		new string[124];
		format(string, sizeof(string), "~b~~h~Tickets~h~(%d/10): ~g~~h~$%d000~n~~r~/ticket to pay", GetPlayerWantedLevel(playerid), GetPlayerWantedLevel(playerid));
		TextDrawSetString(Ticket, string);
		Ticket = TextDrawCreate(497.000000, 129.000000, " ");
		return 1;
		}
	}
	return 1;
}
Reply


Messages In This Thread
Removed - by maxy153 - 23.12.2013, 21:50
Re: OnPlayerUpdate Lag - by Lynn - 23.12.2013, 21:52
Re: OnPlayerUpdate Lag - by maxy153 - 23.12.2013, 21:59
Re: OnPlayerUpdate Lag - by AndreT - 23.12.2013, 22:01
Re: OnPlayerUpdate Lag - by maxy153 - 23.12.2013, 22:07
Re: OnPlayerUpdate Lag - by HavingGood - 23.12.2013, 22:16
Re: OnPlayerUpdate Lag - by maxy153 - 23.12.2013, 22:23
Re: OnPlayerUpdate Lag - by HavingGood - 23.12.2013, 22:27
Re: OnPlayerUpdate Lag - by maxy153 - 23.12.2013, 22:31
Re: OnPlayerUpdate Lag - by erminpr0 - 23.12.2013, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)