How can I make every licence plate say one thing?
#1

I want to set all the number plates to a piece of defined text.
I know I can use max_vehicles in some part. But I need further help thanks
Reply
#2

pawn Код:
for(new j = 0; j != MAX_VEHICLES; j++) {
    SetVehicleNumberPlate(j, "Change");
    return 1;
}
Try this buddy.
Reply
#3

something like this I guess
pawn Код:
new changedplates[MAX_VEHICLES];
public OnVehicleSpawn(vehicleid)
{
    if(changedplates[vehicleid] != 1)
    {
        SetVehicleNumberPlate(vehicleid,"YOUR_TEXT");
        SetVehicleToRespawn(vehicleid);
        changedplates[vehicleid] = 1;
    }
}
Or use Luis' code
Reply
#4

Quote:
Originally Posted by Luis-
Посмотреть сообщение
pawn Код:
for(new j = 0; j != MAX_VEHICLES; j++) {
    SetVehicleNumberPlate(j, "Change");
    return 1;
}
Try this buddy.
Would I put this onplayerupdate?
Reply
#5

Put it after you have created all the vehicles. If you create them in OnGameModeInit, then put it after all the createvehicle/addstaticvehicle code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)