Hey, da stürzt PAWNO immer ab xD
if(strcmp(cmd, "/label", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] == 0)
SendClientMessage(playerid, COLOR_RED,"Du bist kein Admin!");
}
else if (PlayerInfo[playerid][pAdmin] == 1)
new Text3D:mod = Create3DTextLabel("Moderator",COLOR_GREEN,30.0,30.0,5.0,30.0,0);
Attach3DTextLabelToPlayer(mod, playerid, 0.0, 0.0, 0.0);
}
else if (PlayerInfo[playerid][pAdmin] == 2)
{
new Text3D:smod = Create3DTextLabel("Super Moderator",COLOR_GREEN,30.0,30.0,5.0,30.0,0);
Attach3DTextLabelToPlayer(smod, playerid, 0.0, 0.0, 0.0);
}
else if (PlayerInfo[playerid][pAdmin] == 3)
{
new Text3D:admin = Create3DTextLabel("Administrator",COLOR_GREEN,30.0,30.0,5.0,30.0,0);
Attach3DTextLabelToPlayer(admin, playerid, 0.0, 0.0, 0.0);
}
else if (PlayerInfo[playerid][pAdmin] == 4)
{
new Text3D:sadmin = Create3DTextLabel("Super Administrator",COLOR_GREEN,30.0,30.0,5.0,30.0,0);
Attach3DTextLabelToPlayer(sadmin, playerid, 0.0, 0.0, 0.0);
}
else if (PlayerInfo[playerid][pAdmin] == 1337)
{
new Text3D:coleader = Create3DTextLabel("Co-Projektleitung",COLOR_GREEN,30.0,30.0,5.0,30.0,0);
Attach3DTextLabelToPlayer(coleader, playerid, 0.0, 0.0, 0.0);
}
else if (PlayerInfo[playerid][pAdmin] => 1338)
{
new Text3D:projektleiter = Create3DTextLabel("Projektleitung",COLOR_GREEN,30.0,30.0,5.0,30.0,0);
Attach3DTextLabelToPlayer(projektleiter, playerid, 0.0, 0.0, 0.0);
}
return 1;
}