11.12.2018, 00:35
Quote:
Sou novo em PAWNO sabe, esse ai й o Textdraw lб poderia ajeitar para mim apenas colocar no servidor ia me ajudar muito eu acho mais faзil para mim aprender depois.
|
PHP код:
new
UpTimer[MAX_PLAYERS],
PlayerUpCount[MAX_PLAYERS],
PlayerExperience[MAX_PLAYERS]
;
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(UpTimer[playerid]);
PlayerUpCount[playerid] = -1;
PlayerExperience[playerid] = 0;
return 1;
}
public OnPlayerSpawn(playerid)
{
UpTimer[playerid] = SetTimerEx("PlayerUPTimer", 1000, true, "d", playerid);
return 1;
}
forward PlayerUPTimer(playerid);
public PlayerUPTimer(playerid)
{
PlayerUpCount[playerid]--;
new str[19];
format(str, sizeof(str), "UP: %02d:%02d:%02d", PlayerUpCount[playerid]/3600, (PlayerUpCount[playerid] % 3600)/60, PlayerUpCount[playerid] % 60);
PlayerTextDrawSetString(playerid, PlayerText:text, str);
if(PlayerUpCount[playerid] <= 0)
{
SendClientMessage(playerid, -1, "UP");
PlayerExperience[playerid]++;
PlayerUpCount[playerid] = 900;
}
return 1;
}