Hi Leute, biete euch hier meinen Car-Spawner an. Er benötigt ocmd und sscanf. er lässt sich einfach via copy&paste ins script integrieren.
ocmd:v(playerid,params[])
{
new carid;
new Float:xc, Float:yc, Float:zc, Float:ac;
GetPlayerPos(playerid,xc,yc,zc);
GetPlayerFacingAngle(playerid,ac);
if(sscanf(params,"i",carid))return SendClientMessage(playerid,COLOR_RED,"/v [carid]");
new vID = CreateVehicle(carid,xc,yc,zc,ac,1,1,-1,0);
SetPVarInt(playerid,"nCAR",vID);
PutPlayerInVehicle(playerid,vID,0);
SendClientMessage(playerid,COLOR_GREEN,"Fahrzeug erstellt.");
return 1;
}