Wie kann ich das Car direkt Spawnen lassen?
ocmd:addfraktionscar(playerid,params[])
{
new fid,vid,mid,color1,color2, Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
if(sscanf(params,"dddd",fid,mid,color1,color2)) return SendClientMessage(playerid,-1,"Benutze: /addfraktionscar [Fraktionsid] [Model] [Farbe1] [Farbe2]");
vid = CreateVehicle(mid,x,y,z,a,color1,color2,-1);
new query[256];
format(query, sizeof(query), "INSERT INTO FracVehicles (ID, ModelID, PosX, PosY, PosZ, PosA, Color1, Color2, FracID) VALUES ('%d', '%d', '%f', '%f', '%f', '%f', '%d', '%d', '%d')",
vid, mid, x, y, z, a, color1, color2, fid);
mysql_tquery(Handle, query);
DestroyVehicle(vid);
LoadFracVehicles();
SendClientMessage(playerid,-1,"Du hast ein Fraktionsauto erstellt!");
return 1;
}