Und zwar folgendes Problem,
wenn ich Adminrank 5 auf dem Server bin und /ahelp eingebe, dann kommt nur der Text für Adminrank 1, das passiert auch mit anderen Ranks, es wird immer nur der Adminrank 1 dargestellt.
An was liegt das?
if(strcmp("/ah", cmd, true) == 0 || strcmp("/ahelp", cmd, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] != 0)
{
SendClientMessage(playerid, COLOR_WHITE,"__________________________• Adminstratoren Befehle:__________________________");
if(PlayerInfo[playerid][pAdmin] == -1)
{
SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}» Beschwerde-Mod: /prison /warn /check /clearchat /a /atake /po /tban /prison");
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_WHITE,"{FF9500}» Rang 1(Supporter):{FFFFFF} /tv(off) /afk /unten /oben /fly /check /checkakte /checktime /checklicenses");
SendClientMessage(playerid, COLOR_WHITE,"{FF9500}» Rang 1(Supporter):{FFFFFF} /ooc /do /togwhisper /togphone /gotos /slap /atutorial /aond /kick /ah /supportticketsystemhelp /acabuse");
}
if(PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_WHITE,"{EBFF00}» Rang 2(Moderator):{FFFFFF} /mute /unmute /resetderbycars /cnn /countdown /skydive /checkwarns /(un)freeze cops /checkweapons /leaders /resetderbycars /tban");
}
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE,"{00BCFF}» Rang 3(Super Moderator):{FFFFFF} /clearchat /arace /ammukegel /cnnn /checkticket /(un)prison /atake /atow /atowcarid /showplace /objectsyshelp /eventport");
SendClientMessage(playerid, COLOR_WHITE,"{00BCFF}» Rang 3(Super Moderator):{FFFFFF} /addobject /objects /destroyobject /destroyallobjects /pspawn /anos /acolorcar /handkante /flip /skick /tune /ban");
}
if(PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, COLOR_WHITE,"{FF0000}» Rang 4(Administrator):{FFFFFF} /gsspawn /setgs /resetupdates /resettickets /jetpack /allowchangename /czoll /info /zollcontrol /noooc /adminchat");
SendClientMessage(playerid, COLOR_WHITE,"{FF0000}» Rang 4(Administrator):{FFFFFF} /asellbiz /asellhouse /aselltanke /asellsbiz /house /biz /tankenbiz /sbiz /filltanken /edit /mole /startlotto");
SendClientMessage(playerid, COLOR_WHITE,"{FF0000}» Rang 4(Administrator):{FFFFFF} /setstat /fourdive /auninvite /makeleader /gotocoords /enterplayer /entercar /gotohouse /gotozoll /mark /gotomark");
SendClientMessage(playerid, COLOR_WHITE,"{FF0000}» Rang 4(Administrator):{FFFFFF} /agivelicense /getcar /fuelcars /respawnallcars /detroyalladminobjects /attachobjecttovehicle /setplayerattachedobject");
SendClientMessage(playerid, COLOR_WHITE,"{FF0000}» Rang 4(Administrator):{FFFFFF} /givegun /sethp /setarmor /setvehicle /setskin /forcename /wegcar /veh /spawnstaticvehicle /acars /fixveh /burncar");
SendClientMessage(playerid, COLOR_WHITE,"{FF0000}» Rang 4(Administrator):{FFFFFF} /respawn /destroycar /respawnlspd /linkvehtoint /wetter /setmoney /takemoney /warn /clearwarn /entban /entbanip");
SendClientMessage(playerid, COLOR_WHITE,"{FF0000}» Rang 4(Administrator):{FFFFFF} /cheater /ipban /kickall /invitesperre /paydayinmyrange /startbonus /maske /atazer /wanted /clear /showhaus");
}
if(PlayerInfo[playerid][pAdmin] >= 5)
{
SendClientMessage(playerid, COLOR_WHITE,"{AF00FF}» Rang 5(Projektleiter):{FFFFFF} /getallgangcars /saveall /saveserver /spawnhealth /setint /setvirtualworld /getvirtualworld /makeadmin /updatetexte");
SendClientMessage(playerid, COLOR_WHITE,"{AF00FF}» Rang 5(Projektleiter):{FFFFFF} /givecoints /spawnnpc /givedonator /restart /paydayall /clearserverstats /seetax /cleartax /eventkasse /givetax /npcs");
SendClientMessage(playerid, COLOR_WHITE,"{AF00FF}» Rang 5(Projektleiter):{FFFFFF} /paydayinmyrange /paydayall /gfabbrechen /contractall /cleargfpausetime /allowchangename /respawnallcars");
}
SendClientMessage(playerid, COLOR_WHITE,"_____________________________________________________________________________");
}
}
return 1;
}