- 0
Nu apare TextDraw-ul.
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
blan3
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
public CheckCar() { new string2[69]; foreach(Player, i) { new count = 0; if(PlayerData[i][pAdminLevel] >= 1 || PlayerData[i][pHelper] >= 1) { foreach(Player, z) { if(PlayerData[z][pReported] == 1) { count++; } } format(string2,256, " REPORTS: ~g~%d", count); TextDrawSetString(reportstext2[i], string2); TextDrawShowForPlayer(i, reportstext2[i]); } else { TextDrawHideForPlayer(i, reportstext2[i]); } new string[600]; if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER) { new vehicle = GetPlayerVehicleID(i); new Speed = GetVehicleSpeed(vehicle); if(!IsABike(vehicle)) { format(string, sizeof(string), "Fuel: %d L", Gas[vehicle]); TextDrawSetString(Speedo0[i], string); TextDrawShowForPlayer(i, Speedo0[i]); } format(string,sizeof(string),"KM/H",Speed); TextDrawSetString(Speedo2[i], string); TextDrawShowForPlayer(i, Speedo2[i]); format(string,sizeof(string),"%d",Speed); TextDrawSetString(Speedo1[i], string); TextDrawShowForPlayer(i, Speedo1[i]); GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective); if(V_DATA[ vehicle ][ vSQLID ] > 0){ if(doors == 1) { TextDrawSetString(Speedo2[i], ""); } else if(doors == 0) { TextDrawSetString(Speedo2[i], ""); } TextDrawShowForPlayer(i, Speedo2[i]); format( string, sizeof( string ), "Kilometers: %d", V_DATA[ vehicle ][ vKM ] ); TextDrawSetString(Speedo3[i], string); TextDrawShowForPlayer(i, Speedo3[i]); } } else { TextDrawHideForPlayer(i, Speedo0[i]); TextDrawHideForPlayer(i, Speedo1[i]); TextDrawHideForPlayer(i, Speedo2[i]); TextDrawHideForPlayer(i, Speedo3[i]); } } return 1; }Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da
9 answers to this question
Recommended Posts