new Float:RandomSpawn[10][3] ={{2874.2422,-1674.1031,10.8827},{2869.4902,-1672.1688,10.8750},{2874.0283,-1659.5099,10.8750},{2879.1467,-1660.7819,10.8827},{2877.7732,-1648.6309,10.8750},{2882.8643,-1648.5225,10.8827},{2863.6831,-1642.5570,10.8750},{2860.0225,-1638.7455,10.8750},{2855.5842,-1654.8165,10.8572},{2859.5869,-1655.5940,10.8750}};
new rand = random(sizeof(RandomSpawn));SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
new randomskin[] ={ 8, 299, 4, 6, 21, 24, 25, 30, 33, 42, 47, 49};
SetPlayerSkin(playerid, randomskin[random(12)]);
new randomcar[] ={ 411, 429, 451, 477, 480, 494, 502, 503, 506, 541};
new vehicleid;new Float:X,Float:Y,Float:Z,Float:Angle;GetPlayerPos(playerid,X,Y,Z);GetPlayerFacingAngle(playerid,Angle);GetPlayerVehicleID(playerid);vehicleid = CreateVehicle(randomcar[random(3)],RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2],Angle,-1,-1,600);vehicleid = PutPlayerInVehicle(playerid, vehicleid, 0);
Ne haragudj de ez nem teljesen kielégítõ, nincs benne az összes skin meg az összes kocsi. Hivatalos fórumon van tömb amiben benne vannak azok az ID-k, amelyek nem valósak, azokat ki tudod szûrni.
vehicleid = PutPlayerInVehicle(playerid, vehicleid, 0);