[TRAZIM]Trazim sat

Započeo {ZOKA}{BOND}, Decembar 07, 2012, 22:16:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

scripta koju ja koristim:gtarp
TRAZIM: e vako ako mi moze neko da napravi onaj text
http://www.zaslike.com/files/v5dt9klgcdg8sxy4696.png
sat gore u desnom uglu kao na ovom modu BD
ako mi moze neko dat taj sat gore da ja ubacim na svoj mod ako moze molimvas

Evo ti Brt. FS al sljedeći put malo potrazi   ;) http://balkan-samp.com/forum/index.php?topic=59808.0
Mislim dakle Boze
Na Zari sve i svasta

e jel moze da mi napravis daje ovo mesto

Textdraw0 = TextDrawCreate(62.000000, 327.000000, "00:00");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.519999, 1.200000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

tosam ja radio taj Text za vreme da mi bude u drugom uglu znal ko naravit dami taj text bude i da radi sat

Na vrh skripte stavi ovo new Text:txtTimeDisp;
new hour, minute;
new timestr[32];

forward UpdateTime();
na kraj skripte public UpdateTime()
{
    gettime(hour, minute);
    format(timestr,32,"%02d:%02d",hour,minute);
    TextDrawSetString(txtTimeDisp,timestr);
   
    SetWorldTime(hour);
   
new x=0;
while(x!=MAX_PLAYERS) {
    if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) {
        SetPlayerTime(x,hour,minute);
}
x++;
}
}
pod OnGameModeInit txtTimeDisp = TextDrawCreate(62.000000, 327.000000,"00:00");
TextDrawUseBox(txtTimeDisp, 0);
TextDrawFont(txtTimeDisp, 3);
TextDrawSetShadow(txtTimeDisp,0); // no shadow
    TextDrawSetOutline(txtTimeDisp,2); // thickness 1
    TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
    TextDrawColor(txtTimeDisp,0xFFFFFFFF);
    TextDrawAlignment(txtTimeDisp,3);
TextDrawLetterSize(txtTimeDisp,0.5,1.5);

UpdateTime();
SetTimer("UpdateTime",1000 * 60,1);
pod OnPlayerSpawn TextDrawShowForPlayer(playerid,txtTimeDisp);

gettime(hour, minute);
SetPlayerTime(playerid,hour,minute);
pod OnPlayerConnect gettime(hour, minute);
    SetPlayerTime(playerid,hour,minute);
i pod OnPlayerDeath TextDrawHideForPlayer(playerid,txtTimeDisp);