05.11.2010, 19:27
Ok, im have some problems, with TD, and another shit....
So, i downloaded some speedometer.. Added it to gamemode. No errors, but no td, when i enter the car.. And, there is the script:
new Text:Spidometras[MAX_PLAYERS]; <--- Top of script
KrautiTextDrawus(); <--- OnGameModeInit
SetTimer("PagrindinisTimer", 1000, true); <---- OnGameModeInit
<--- Anywhere
So, i downloaded some speedometer.. Added it to gamemode. No errors, but no td, when i enter the car.. And, there is the script:
new Text:Spidometras[MAX_PLAYERS]; <--- Top of script
KrautiTextDrawus(); <--- OnGameModeInit
SetTimer("PagrindinisTimer", 1000, true); <---- OnGameModeInit
Quote:
KrautiTextDrawus() { foreach(Player, i) { Spidometras[i] = TextDrawCreate(200.000000,390.000000,"0"); TextDrawAlignment(Spidometras[i],0); TextDrawBackgroundColor(Spidometras[i],0x000000ff); TextDrawFont(Spidometras[i],1); TextDrawLetterSize(Spidometras[i],0.455555,1.000000); TextDrawColor(Spidometras[i],0xffffffff); TextDrawSetOutline(Spidometras[i],1); TextDrawSetProportional(Spidometras[i],1); TextDrawSetShadow(Spidometras[i],1); } return 1; } |
Quote:
public PagrindinisTimer() { foreach(Player, ID) { Some another shit.. if(IsPlayerInAnyVehicle(ID) && GetPlayerState(ID) == PLAYER_STATE_DRIVER) { TextDrawShowForPlayer(ID,Spidometras[ID]); if(MasinosID != BMX && MasinosID != MTBIKE && MasinosID != BIKE) format(Stringas,65,"~r~Greitis: ~w~%ikm/h ~r~Degalai: ~w~%i ~n~ ",ZaidejoGreitis(ID),vehicleDB[MasinosID][gas]); else format(Stringas,45,"~r~Greitis: ~w~%ikm/h",ZaidejoGreitis(ID)); TextDrawSetString(Spidometras[ID],Stringas); } ... another shit |