05.03.2015, 19:28
the way I'd do it is :
Try to pull out my idea from that, not trying to play puzzle but I have no idea what vars you are using. Just use a double array so you have each player can have 50 cars to spawn,
PHP код:
CreatedCars[MAX_PLAYERS][50];
vehicle3Dtext[MAX_PLAYERS][50];
CreatedCars[playerid][iIterator] = CreateVehicle(iVehicle, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], iColors[0], iColors[1], -1);
vehicle3Dtext[playerid][iIterator] = Create3DTextLabel( "ADMIN SPAWNED CAR", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[playerid][iIterator] , CreatedCars, 0.0, 0.0, 2.0);