pawn Код:
OnPlayerConnected(playerid)
{
Velo[playerid] = TextDrawCreate(60.000000,323.000000,"KM");
TextDrawColor(Velo[playerid],verde);
TextDrawSetOutline(Velo[playerid],1);
TextDrawBackgroundColor(Velo[playerid],0x000000FF);
TextDrawFont(Velo[playerid],2);
return 1;
}
Atualizador:
pawn Код:
OnPlayerUpdate(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
format(veloc, sizeof(veloc),"KM/H:%02d",GetPlayerSpeed(playerid));
TextDrawSetString(Velo[playerid],veloc);
}
return 1;
}
Relogio:
pawn Код:
GameModeInit()
{
Relogio = TextDrawCreate(605.0,25.0,"HRS");
TextDrawFont(Relogio, 3);
TextDrawSetOutline(Relogio,1);
TextDrawBackgroundColor(Relogio,0x000000FF);
TextDrawColor(Relogio,verde);
TextDrawAlignment(Relogio,3);
TextDrawLetterSize(Relogio,0.5,1.5);
и Fica Bugando print: