Hallo,
Ich schreibe gerade/editiere ein Script und dort ist es so das wenn man /ahelp macht,
alles im chat steht.Ich möchte es aber in einer MSG_BOX.
Jetzt ist nur das Problem das Ja für jedes Adminlevel andere Befehle angezeigt werden...wie macht man das dann?
Hier der Befehl:
if(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");
}
if(PlayerInfo[playerid][pSupporter] >= 2) {
SendClientMessage(playerid, 0x4BFF00FF, "*2* SUPPORTER *** /gethere /bigears");
}
if (PlayerInfo[playerid][pAdmin] >= 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)"#COL_RED" /deskick");
}
if (PlayerInfo[playerid][pAdmin] >= 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 ");
}
if (PlayerInfo[playerid][pAdmin] >= 2001) {
SendClientMessage(playerid, COLOR_RED,"*** 2001 *** /makesupp /makeadmin");
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
return 1;
}