Wenn 2 Admins online sind & ich ein Car erstelle , kommt auf den Label : z.B Admincar von saboh und darauf Admincar von saboh2.
Wenn aber beide ein Car erstellen ist es normal.
ocmd:newcar(playerid,params[])
{
new Float:vehx,Float:vehy,Float:vehz;
new vehid,cc1,cc2,string[300],Text3D:vehicle;
if(sscanf(params,"iii",vehid,cc1,cc2))return SendClientMessage(playerid, ROT,"INFO: /newcar [CAR-ID] [COLOR 1] [COLOR 2]");
if(vehid< 400 || vehid > 611) return SendClientMessage(playerid,0xFF0000FF,"Ungültige Vehicle-ID!");
if(isPlayerAnAdmin(playerid,1))
{
GetVehiclePos(vehid,vehx,vehy,vehz);
format(string,sizeof(string),"Admincar von %S",playerid);
vehicle = Create3DTextLabel(string,ROT,vehx,vehy,vehz,50.0,0,0);
Attach3DTextLabelToVehicle(vehicle,vehid, 0.0, 0.0, 0.75);
new name[MAX_PLAYER_NAME];
GetPlayerPos(playerid,vehx,vehy,vehz);
new carid = CreateVehicle(vehid,vehx,vehy,vehz,3,cc1,cc2,-1);
GetPlayerName(playerid,name, sizeof(name));
format(string,sizeof(string),"T:%s",name);
SetVehicleNumberPlate(carid,string);
PutPlayerInVehicle(playerid, carid, 0);
format(string,sizeof(string),"Du hast ein Admincar gespawnt!(ID:%i)",carid);
SendClientMessage(playerid,BLAU,string);
GetVehiclePos(vehid,vehx,vehy,vehz);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Admincar von %s",name);
vehicle = Create3DTextLabel(string,BLAU,vehx,vehy,vehz,50.0,0,0);
Attach3DTextLabelToVehicle(vehicle,carid, 0.0, 0.0, 0.75);
}
else
{
SendClientMessage(playerid,ROT,"Diesen Befehl kannst du nicht nutzen. Mindestens benötigter Rang: {00FF5A}Supporter");
}
return 1;
}