Guten Tag Community
Undzwar unser Server hat folgenden Bugg
Wenn man /ahelp eingibt werden alle Commands von jedem level gezeigt wir möchten es aber nur so wenn man z.B level 3 Ist das man nur die Commands von Level 1-3 gezeigt bekommt.
Verwendetes Script Realife City.
ZitatAlles anzeigenif(strcmp(cmd, "/ahelp", true) == 0 strcmp(cmd, "/ah", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pSupporter] == 0)
return SendClientMessage(playerid, COLOR_WHITE, "Du bist kein Supporter / Admin.");
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
if (PlayerInfo[playerid][pSupporter] >= 1)
{
SendClientMessage(playerid, 0x4BFF00FF, "*1* SUPPORTER *** /kick /unfreeze /goto /aws /aduty /supmobil"#COL_RED" /deskkick"); //Level 1
}
if(PlayerInfo[playerid][pSupporter] >= 2)
{
SendClientMessage(playerid, 0x4BFF00FF, "*2* SUPPORTER *** /gethere /bigears");
}
if (PlayerInfo[playerid][pAdmin] >= 1) //Admin Level 1
{
SendClientMessage(playerid, 0x00AFFFFF, "*1* ADMIN *** /prison /ar /cr /tr /cleartext /checkwarns /check /setint /mute /rrball /supmobil");
SendClientMessage(playerid, 0x00AFFFFF, "*1* ADMIN *** /kick /kickres /warn /sban /ban /goto /cnn /a(dmin) /aw(s) /showme");
SendClientMessage(playerid, 0x00AFFFFF, "*1* ADMIN *** /checkwaffen /lt (Einheit nach links) /rt (Einheit nach rechts)");
}
if (PlayerInfo[playerid][pAdmin] >= 2) //Admin Level 2
{
SendClientMessage(playerid, 0xFFFF00FF,"*2* ADMIN *** /setteam /cnn /freeze /unfreeze /recon /cam /spawn /rc (Carrespawn)");
SendClientMessage(playerid, 0xFFFF00FF,"*2* ADMIN *** /getip /startbonus");//"#COL_RED" /arb /arball /deletearb
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, 0xFFA000FF,"*3* ADMIN *** /gotols /gotolv /gotosf /gotozivi /gotobsn /noshowme /auninvite");
SendClientMessage(playerid, 0xFFA000FF,"*3* ADMIN *** /mark /gotomark /gethere /oldcar /gotocar /getcar /saveall /vworld");
SendClientMessage(playerid, 0xFFA000FF,"*3* ADMIN *** /ainvite /auninvite /startbonus");//"#COL_RED" /deletearbfor /arbobj
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, 0xFF6400FF,"*4* ADMIN *** /knast /logout /logoutpl /logoutall /edit /asellhouse /asellbiz /sellsbiz /setchamp /umbenennen");
SendClientMessage(playerid, 0xFF6400FF,"*4* ADMIN *** /fixveh /destroycars /sethp /setarmor /givegun /givemoney /money /setstat");
SendClientMessage(playerid, 0xFF6400FF,"*4* ADMIN *** /pevent /delevent /mole /hq /givemats /givedrugs /sethouseinterior /startbonus");
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, COLOR_GREEN,"*** 1337 *** /weather /weatherall /makeadmin /makeleader /startlotto");
SendClientMessage(playerid, COLOR_GREEN,"*** 1337 *** /setfkasse /fl (Fraktionsliste) /noooc /hirekey");
SendClientMessage(playerid, COLOR_GREEN,"*** 1337 *** /haus /hauseo /cnnn /makeircadmin /afill /startbonus");
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
SendClientMessage(playerid, 0x1400FFFF,"***1338 *** /dtc /veh /togreport Unsichtbar in Adminliste /startbonus");
}
if (PlayerInfo[playerid][pAdmin] >= 2000)
{
SendClientMessage(playerid, COLOR_RED,"*** 2000 *** /givedonator /arb /arball /arbforall /deletearb /deletearbfor /arbobj /arbobjid /golddeagle ");
}
if (PlayerInfo[playerid][pAdmin] >= 2001)
{
SendClientMessage(playerid, COLOR_RED,"*** 2001 *** /makesupp /makeadmin /HandyRadio /geheimrsht /closemarkt");
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
return 1;
}
Nur Funktioniert es leider so nicht
Wiesst ihr weiter ? Mfg