Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ocmd:efas(playerid,params[]){ /// FactionCars[fc][fVehid] wird verwendet irgendwo noch... oder ?
- if(PlayerInfo[playerid][pAdmin] == 2002)
- {
- new vehid,col1,col2,fracid;
- if(sscanf(params,"dddd",vehid,col1,col2,fracid)) return SendClientMessage(playerid,FACTION_COL_GREY,"Benutze: '/efa [Model] [Farbe(1)] [Farbe(2)] [Hauptfraktion]'.");
- if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,FACTION_COL_GREY,"Vehicle-ID nur von 400 bis 611.");
- if(col1 < 0 || col1 > 255) return SendClientMessage(playerid,FACTION_COL_GREY,"Falsche Farbe(1)!");
- if(col2 < 0 || col2 > 255) return SendClientMessage(playerid,FACTION_COL_GREY,"Falsche Farbe(2)!");
- if(fracid <1 || fracid > 24) return SCM(playerid,-1,"FracID nicht kleiner als 1 oder höher als 25!"); // falls 0 oder höher als 25
- for(new fc=0; fc<sizeof(FactionCars); fc++)
- {
- if(FactionCars[fc][fVehid] != 0) continue;
- new Float:fX,Float:fY,Float:fZ,Float:fA;
- GetPlayerPos(playerid,fX,fY,fZ),GetPlayerFacingAngle(playerid,fA);
- FactionCars[fc][fVehid] = vehid;
- FactionCars[fc][fPos][0] = fX;
- FactionCars[fc][fTuning][16] = 100;
- FactionCars[fc][fPos][1] = fY;
- FactionCars[fc][fPos][2] = fZ;
- FactionCars[fc][fPos][3] = fA;
- FactionCars[fc][fCol][0] = col1;
- FactionCars[fc][fCol][1] = col2;
- FactionCars[fc][fFaction] = fracid;
- FactionCars[fc][fPrice] = 0;
- for(new mood;mood<16;mood++)
- {
- FactionCars[fc][fTuning][mood] = 0;}
- FactionCars[fc][fCarid] = CreateVehicle(FactionCars[fc][fVehid],FactionCars[fc][fPos][0],FactionCars[fc][fPos][1],FactionCars[fc][fPos][2],FactionCars[fc][fPos][3],FactionCars[fc][fCol][0],FactionCars[fc][fCol][1],-1, 0);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Du hast das Fraktions Fahrzeug erfolgreich erstellt.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vergesse es nicht mit '/parken' umzuparken.");
- PutPlayerInVehicle(playerid,FactionCars[fc][fCarid],0);
- SaveFrakCarToDB(playerid,fc);
- return 1;
- }
- }else SendClientMessage(playerid,FACTION_COL_GREY,"Du bist nicht berechtigt diesen Befehl anzuwenden.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement