hallo, wie der titel schon sagt,
ich habe 3 bots drinne, funktioniren alle, nur das problem ist, das bei einem bot, die 3dtextlabels 3fach für die anderen bots angezeigt werden, und bei den anderen bots wird kein label angezeigt, ich habs so:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
Attach3DTextLabelToPlayer(taxibot, playerid, 0.0,0.0,0.0);
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "stunttaxi", true))
{
PutPlayerInVehicle(playerid, stunttaxi, 1);
}
}
if(IsPlayerNPC(playerid))
{
Attach3DTextLabelToPlayer(hotringbot, playerid, 0.0,0.0,0.0);
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "hotringbotstuntpark", true))
{
PutPlayerInVehicle(playerid, hotringbotstuntpark, 1);
}
}
if(IsPlayerNPC(playerid))
{
Attach3DTextLabelToPlayer(wangbot, playerid, 0.0,0.0,0.0);
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "infernuswang", true))
{
PutPlayerInVehicle(playerid, infernuswang, 1);
}
}
wie kan nich das machen?
mfg fluppy