Hallo liebe Community.
Ich habe bereits Autos für das LSPD definiert:
Code
polizeicar[0] = AddStaticVehicle(522,1584.7737,-1667.4862,5.4336,270.3081,1,103); // NRG 1 polizeicar[1] = AddStaticVehicle(522,1584.8943,-1671.8813,5.4523,270.3984,1,103); // NRG 2 polizeicar[2] = AddStaticVehicle(523,1601.5417,-1696.0778,5.4613,90.3787,103,1); // HPV 1 polizeicar[3] = AddStaticVehicle(523,1601.4357,-1700.1022,5.4606,89.8080,103,1); // HPV 2 polizeicar[4] = AddStaticVehicle(523,1601.2659,-1704.3336,5.4618,90.2864,103,1); // HPV 3 polizeicar[5] = AddStaticVehicle(596,1595.5391,-1709.9387,5.6103,0.5906,1,103); // Cop 1 polizeicar[6] = AddStaticVehicle(596,1591.5665,-1709.9452,5.6083,0.7691,1,103); // Cop 1 polizeicar[7] = AddStaticVehicle(596,1587.4956,-1710.0143,5.6096,0.2034,1,103); // Cop 3 polizeicar[8] = AddStaticVehicle(596,1583.1752,-1710.0463,5.6119,358.9214,1,103); // Cop 4 polizeicar[9] = AddStaticVehicle(596,1578.4535,-1710.1492,5.6119,359.9728,1,103); // Cop 5 polizeicar[10] = AddStaticVehicle(560,1574.3612,-1710.2839,5.5935,0.6224,103,1); // Sultan 1 polizeicar[11] = AddStaticVehicle(560,1570.2974,-1710.3293,5.5963,1.3951,103,1); // Sultan 2 polizeicar[12] = AddStaticVehicle(560,1564.5745,-1710.6659,5.5972,359.8120,103,1); // Sultan 3 polizeicar[13] = AddStaticVehicle(560,1558.8065,-1710.6741,5.5967,0.2440,103,1); // Sultan 4 polizeicar[14] = AddStaticVehicle(599,1529.2269,-1688.0552,6.0842,267.9819,1,103); // Ranger 1 polizeicar[15] = AddStaticVehicle(599,1529.2408,-1683.9156,6.0877,269.7353,1,103); // Ranger 2 polizeicar[16] = AddStaticVehicle(565,1544.9114,-1684.4728,5.5145,89.9723,103,1); // Flash polizeicar[17] = AddStaticVehicle(429,1544.8022,-1680.1301,5.5930,90.4770,103,1); // Banshee polizeicar[18] = AddStaticVehicle(541,1534.6340,-1644.5933,5.5160,179.5428,1,103); // Leader-Bullet polizeicar[19] = AddStaticVehicle(506,1530.5494,-1644.9537,5.5955,181.0503,103,1); // Leader-Super GT
Soo, jetzt würde ich gerne den einzelnen Autos Ränge zuteilen.
Könnt ihr mir sagen wie ich das mache?
Das die Autos nur das LSPD fahren kann habe ich auch schon gemacht...:
Code
if(newstate==PLAYER_STATE_DRIVER) { for(new i=0; i<sizeof(polizeicar); i++) { if(GetPlayerVehicleID(playerid)==polizeicar[i]) { if(GetPVarInt(playerid,"Fraktion")!=1 && GetPVarInt(playerid,"Adminlevel")!=1) { TogglePlayerControllable(playerid,0); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid,1); SendClientMessage(playerid,GRAU,"Du darfst das Auto nicht benutzen!"); } } } }