Also,
Ich weis echt nicht mehr weiter,
alles funktioniert, nur die Label vermischen sich.
Bedeutet:
Supporter 1 spawnt ein Fahrzeug ( 3D Label : Supportfahrzeug von Supporter 1 ).
Supporter 2 spawnt ein Fahrzeug ( 3D Label : Supportfahrzeug von Supporter 2 ).
Fährt man ein Stück, hat jeder das von dem anderen auch noch drin und man kann nix mehr lesen
case DIALOG_AFAHRZEUG:
{
switch(listitem)
{
case 0:
{
new Float:x, Float:y, Float:z, supporter[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid,supporter,MAX_PLAYER_NAME);
GetPlayerPos(playerid,x,y,z);
SetVehicleNumberPlate(car[playerid]=CreateVehicle(560,x,y,z,3,0,0,-1),"Supporter");
PutPlayerInVehicle(playerid,car[playerid],0);
SendClientMessage(playerid,0xFFB400FF,"Du hast ein Supporter Mobil gespawnt.");
format(string,sizeof(string),"Support Fahrzeug von %s",supporter);
supportveh[playerid] = Create3DTextLabel(string,0xFFB400FF,0.0,0.0,0.0,30.0,0,1);
Attach3DTextLabelToVehicle(supportveh[playerid],car[playerid],0.0,0.0,2.0);
SetPVarInt(playerid,"SupMobil",1);
return 1;
}
case 1:
{
new Float:x, Float:y, Float:z, supporter[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid,supporter,MAX_PLAYER_NAME);
GetPlayerPos(playerid,x,y,z);
SetVehicleNumberPlate(car[playerid]=CreateVehicle(520,x,y,z,3,0,0,-1),"Supporter");
PutPlayerInVehicle(playerid,car[playerid],0);
SendClientMessage(playerid,0xFFB400FF,"Du hast ein Supporter Mobil gespawnt.");
format(string,sizeof(string),"Support Fahrzeug von %s",supporter);
supportveh[playerid] = Create3DTextLabel(string,0xFFB400FF,0.0,0.0,0.0,30.0,0,1);
Attach3DTextLabelToVehicle(supportveh[playerid],car[playerid],0.0,0.0,2.0);
SetPVarInt(playerid,"SupMobil",1);
return 1;
}
case 2:
{
new Float:x, Float:y, Float:z, supporter[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid,supporter,MAX_PLAYER_NAME);
GetPlayerPos(playerid,x,y,z);
SetVehicleNumberPlate(car[playerid]=CreateVehicle(411,x,y,z,3,0,0,-1),"Supporter");
PutPlayerInVehicle(playerid,car[playerid],0);
SendClientMessage(playerid,0xFFB400FF,"Du hast ein Supporter Mobil gespawnt.");
format(string,sizeof(string),"Support Fahrzeug von %s",supporter);
supportveh[playerid] = Create3DTextLabel(string,0xFFB400FF,0.0,0.0,0.0,30.0,0,1);
Attach3DTextLabelToVehicle(supportveh[playerid],car[playerid],0.0,0.0,2.0);
SetPVarInt(playerid,"SupMobil",1);
return 1;
}
}
}
}