20.08.2012, 22:34
Yeah, but you'll have to have one textdraw for every vehicle, like:
Hope you understand how to do it, don't know what more i can explain.
pawn Код:
VStats[MAX_VEHICLES];
VName[MAX_VEHICLES];
SPEEDOS[MAX_VEHICLES];
HEALTH[MAX_VEHICLES];
Doors[MAX_VEHICLES];
and then you'll have to update all the vehicles variables, like:
for(new i = 0; i<MAX_VEHICLES; i++){
new vehhp = GetVehicleHealth(i);
//set the text to vehhp here
}
//and on player enter veh/playerstatechange
vehid = GetVehicleID(playerid);
TextDrawShowForPlayer(playerid,VStats[vehid]);
TextDrawShowForPlayer(playerid,VName[vehid]);
TextDrawShowForPlayer(playerid,SPEEDOS[vehid]);
TextDrawShowForPlayer(playerid,HEALTH[vehid]);
TextDrawShowForPlayer(playerid,Doors[vehid]);