15.11.2011, 19:52
(
Последний раз редактировалось ReDKiiL; 15.11.2011 в 22:24.
)
Tipo Galera O TextDraw Velocimetro Estб Bugando Com o Relogio :S
Velocimetro :
Atualizador:
Relogio:
и Fica Bugando print:
Velocimetro :
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;
}
pawn Код:
OnPlayerUpdate(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
format(veloc, sizeof(veloc),"KM/H:%02d",GetPlayerSpeed(playerid));
TextDrawSetString(Velo[playerid],veloc);
}
return 1;
}
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);