ocmd:autosetzen(playerid,params[])
{
if(!isAdmin(playerid,8)) return SendClientMessage(playerid,helbau,"Du hast nicht die passende Rechte dafür!");
new mID,pID;
if(sscanf(params,"ud",pID,mID))return SendClientMessage(playerid,helbau,"Benutze: /autosetzen [playerid] [model]");
if(mID<400||mID>611)return SendClientMessage(playerid,rot,"Ungültige Modelid!");
new Float:X,Float:Y,Float:Z,Float:R;
GetPlayerPos(pID,X,Y,Z);
SetPlayerFacingAngle(pID,R);
new string[128], string1[128];
format(string, sizeof(string), "INSERT INTO `Autos` (`Besitzer`, `model`, `x`, `y`, `z`, `r`) VALUES (%d, %d, %f, %f, %f, %f)",
pID, mID, X, Y, Z, R
);
format(string1, sizeof(string1), "Du hast erfolgreich das Auto mit der Model ID %d erstellt!", mID);
SendClientMessage(playerid, grün, string1);
CreateVehicle(mID, X, Y, Z, R, -1, -1, -1);
mysql_function_query(dbhandle,string,false," "," ");
return 1;
}