04.08.2016, 09:45
Quote:
OnGameModeInIt doesn't have a playerid paramater.
Try using it under OnPlayerConnect(playerid)? |
after creating your vehicles add this code
PHP код:
native IsValidVehicle(vehicleid); // <- add this after a_samp include
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(!IsValidVehicle(i)) continue;
new rand = random(3000) + 1500;
new string[24];
format(string, sizeof(string), "{D20000}BG-{FFFFFF}%d", rand);
SetVehicleNumberPlate(i, string);
}