Hallo ich hba 1 virtuellen welten und in einer Spawnt das car nicht aber warum ich hab das so geamcht
ocmd:v(playerid,params[])
{
new vID;
if(sscanf(params, "d", vID))
{
return SendClientMessage(playerid,ROT,"Benutzung: /v [Vehicle ID]");
}
if(vID < 400 || vID > 611)
{
return SendClientMessage(playerid,ROT,"Nur Vehicle-ID's von 400-611 benutzen!");
}
else
{
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 1);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new cv = CreateVehicle(vID, x, y, z, 0, 0xFFFFFFFF, 0xFFFFFFFF, 999999999999999999999999999999999999999);
SetVehicleNumberPlate(cv,"STUNT/DM");
PutPlayerInVehicle(playerid, cv, 0);
AddVehicleComponent(cv, 1010);
new string[256];
format(string, sizeof(string), "Fahrzeugnummer %d gespawnt.",vID);
SendClientMessage(playerid,GRÜN, string);
}
return 1;
}