Hallo,
Ich habe unter OnPlayerSpawn Admin-3DTextLabels erstellt,jedoch werden die meinem NPC auch angezeigt :?
if(Player[playerid][Admin] == 1)
{
adminlabel[3] = Create3DTextLabel("Moderator",COLOR_LIGHTBLUE,-1423.0471,-111.7315,14.1440,90,0);
Attach3DTextLabelToPlayer(adminlabel[3], playerid, 0.0,0.0,0.0);}
if(Player[playerid][Admin] == 2)
{
adminlabel[2] = Create3DTextLabel("Administrator",COLOR_LIGHTBLUE,-1423.0471,-111.7315,14.1440,90,0);
Attach3DTextLabelToPlayer(adminlabel[2], playerid, 0.0,0.0,0.0);}
if(Player[playerid][Admin] == 3)
{
adminlabel[1] = Create3DTextLabel("Super Admin",COLOR_LIGHTBLUE,-1423.0471,-111.7315,14.1440,90,0);
Attach3DTextLabelToPlayer(adminlabel[1], playerid, 0.0,0.0,0.0);}
if(Player[playerid][Admin] == 4)
{
adminlabel[0] = Create3DTextLabel("Server Owner",COLOR_LIGHTBLUE,0,0,-50,90,0);
Attach3DTextLabelToPlayer(adminlabel[0], playerid, 0.0,0.0,0.0);}
NPC-Bot unter OnPlayerRequestCLass:
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
if(!strcmp(oPlayerName[playerid], "Train", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Train, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
}
return 1;
}