Hallo,hier mein /veh befehl wie geht /delveh befehl ?
ocmd:veh(playerid,params[])
{
new ModelID, color[2],Float:VehPos[4], vehicleid;
if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,ROT,"Du bist nicht zu Fuss");
if(sscanf(params, "ddd",ModelID,color[0],color[1])) return SendClientMessage(playerid,ROT, "/veh [vehicleid] [color1] [color2]");
if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,ROT, "Es muss eine Fahrzeug ID zwischen 411 und 611 sein!");
if(color[0] < 0 || color[0] > 255 || color[1] < 0 || color[1] > 255) return SendClientMessage(playerid,ROT, "Die Color-IDs müssen zwischen 0 und 126 sein!");
if(IstSpielerAdmin(playerid,3))
{
GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
GetPlayerFacingAngle(playerid, VehPos[3]);
vehicleid = CreateVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],-1);
LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
SetVehicleNumberPlate(vehicleid,"ADMIN");
SetVehicleToRespawn(vehicleid);
PutPlayerInVehicle(playerid, vehicleid, 0);
SendClientMessage(playerid,TÜRKIS,"Car gespawnt");
}
else return SendClientMessage(playerid,ROT, "Dazu bist du nicht befugt !");
return 1;
}