30.03.2019, 01:47
PHP Code:
public OnPlayerConnect(playerid)
{
// Coloque esse cуdigo na callback onde autentica a senha do usuбrio, para exibir o 'Relуgio UP' quando inserir a senha.
UPRelogio[playerid] = SetTimerEx("RelogioUP", 1000,true,"i",playerid);
PlayerStatus[playerid][20] = CreatePlayerTextDraw(playerid, 598.600097, 302.655731, "");
PlayerTextDrawLetterSize(playerid, PlayerStatus[playerid][20], 0.331000, 1.130000);
PlayerTextDrawAlignment(playerid, PlayerStatus[playerid][20], 2);
PlayerTextDrawColor(playerid, PlayerStatus[playerid][20], -1);
PlayerTextDrawSetShadow(playerid, PlayerStatus[playerid][20], 0);
PlayerTextDrawSetOutline(playerid, PlayerStatus[playerid][20], -1);
PlayerTextDrawBackgroundColor(playerid, PlayerStatus[playerid][20], 255);
PlayerTextDrawFont(playerid, PlayerStatus[playerid][20], 3);
PlayerTextDrawSetProportional(playerid, PlayerStatus[playerid][20], 1);
PlayerTextDrawSetShadow(playerid, PlayerStatus[playerid][20], 0);
return 1;
}
public OnPlayerDisconnect(playerid)
{
KillTimer(UPRelogio[playerid]);
return 1;
}