SHARE
TWEET

Untitled

a guest Mar 17th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ocmd:efas(playerid,params[]){  /// FactionCars[fc][fVehid] wird verwendet irgendwo noch... oder ?
  2.             if(PlayerInfo[playerid][pAdmin] == 2002)
  3.             {
  4.                 new vehid,col1,col2,fracid;
  5.                 if(sscanf(params,"dddd",vehid,col1,col2,fracid)) return SendClientMessage(playerid,FACTION_COL_GREY,"Benutze: '/efa [Model] [Farbe(1)] [Farbe(2)] [Hauptfraktion]'.");
  6.                 if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,FACTION_COL_GREY,"Vehicle-ID nur von 400 bis 611.");
  7.                 if(col1 < 0 || col1 > 255) return SendClientMessage(playerid,FACTION_COL_GREY,"Falsche Farbe(1)!");
  8.                 if(col2 < 0 || col2 > 255) return SendClientMessage(playerid,FACTION_COL_GREY,"Falsche Farbe(2)!");
  9.                 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
  10.        
  11.            
  12.            
  13.                 for(new fc=0; fc<sizeof(FactionCars); fc++)
  14.                 {
  15.                     if(FactionCars[fc][fVehid] != 0) continue;
  16.                     new Float:fX,Float:fY,Float:fZ,Float:fA;
  17.                     GetPlayerPos(playerid,fX,fY,fZ),GetPlayerFacingAngle(playerid,fA);
  18.  
  19.          
  20.                     FactionCars[fc][fVehid] = vehid;
  21.  
  22.                     FactionCars[fc][fPos][0] = fX;
  23.                     FactionCars[fc][fTuning][16] = 100;
  24.                     FactionCars[fc][fPos][1] = fY;
  25.                     FactionCars[fc][fPos][2] = fZ;
  26.                     FactionCars[fc][fPos][3] = fA;
  27.                     FactionCars[fc][fCol][0] = col1;
  28.                     FactionCars[fc][fCol][1] = col2;
  29.                     FactionCars[fc][fFaction] = fracid;
  30.                     FactionCars[fc][fPrice] = 0;
  31.    
  32.                     for(new mood;mood<16;mood++)
  33.                     {
  34.                         FactionCars[fc][fTuning][mood] = 0;}
  35.  
  36.  
  37.                     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);
  38.  
  39.                
  40.  
  41.  
  42.                    
  43.  
  44.                
  45.                     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Du hast das Fraktions Fahrzeug erfolgreich erstellt.");
  46.                     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vergesse es nicht mit '/parken' umzuparken.");
  47.                     PutPlayerInVehicle(playerid,FactionCars[fc][fCarid],0);
  48.                     SaveFrakCarToDB(playerid,fc);
  49.                     return 1;
  50.                 }
  51.             }else SendClientMessage(playerid,FACTION_COL_GREY,"Du bist nicht berechtigt diesen Befehl anzuwenden.");
  52.             return 1;
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top