dcmd_ah(playerid,params[])
{
#pragma unused params
if(IstSpielerAdmin(playerid,1))
{
SendClientMessage(playerid,BLAU," |_____________ Administration Befehle _____________| ");
SendClientMessage(playerid,GELB," /acar | /acard | /sduty | /w | /a ");
return 1;
}
if(IstSpielerAdmin(playerid,2))
{
SendClientMessage(playerid,GELB," /acar | /acard | /sduty | /w | /a | /kick | /pban | /ct4 | /spec");
SendClientMessage(playerid,GELB," /specaus | /slap | /setworld | /freeze | /unfreeze | /gt | /fix ");
SendClientMessage(playerid,GELB," /goto | /gethere | /o | /reporthilfe");
return 1;
}
if(IstSpielerAdmin(playerid,3))
{
SendClientMessage(playerid,GELB," /acar | /acard | /sduty | /w | /a | /kick | /pban | /ct4 | /spec");
SendClientMessage(playerid,GELB," /specaus | /slap | /setworld | /freeze | /unfreeze | /gt | /fix ");
SendClientMessage(playerid,GELB," /goto | /gethere | /o | /reporthilfe | /specf | /showall | /unshowall");
SendClientMessage(playerid,GELB," /respawnallcars | /gozoll | /gotols | /gotosf | /gotolv | /givemoney");
SendClientMessage(playerid,GELB," /takewaffenschein | /specf | /setskin | /gotocar | /getcar");
return 1;
}
if(IstSpielerAdmin(playerid,4))
{
SendClientMessage(playerid,GELB," /acar | /acard | /sduty | /w | /a | /kick | /pban | /ct4 | /spec");
SendClientMessage(playerid,GELB," /specaus | /slap | /setworld | /freeze | /unfreeze | /gt | /fix ");
SendClientMessage(playerid,GELB," /goto | /gethere | /o | /reporthilfe | /specf | /showall | /unshowall");
SendClientMessage(playerid,GELB," /respawnallcars | /gozoll | /gotols | /gotosf | /gotolv | /givemoney");
SendClientMessage(playerid,GELB," /takewaffenschein | /specf | /setskin | /gotocar | /getcar");
SendClientMessage(playerid,GELB," /sethp | /setarmor | /giveallescheine | /giveperso | /setint");
return 1;
}
if(IstSpielerAdmin(playerid,5))
{
SendClientMessage(playerid,GELB," /acar | /acard | /sduty | /w | /a | /kick | /pban | /ct4 | /spec");
SendClientMessage(playerid,GELB," /specaus | /slap | /setworld | /freeze | /unfreeze | /gt | /fix ");
SendClientMessage(playerid,GELB," /goto | /gethere | /o | /reporthilfe | /specf | /showall | /unshowall");
SendClientMessage(playerid,GELB," /respawnallcars | /gozoll | /gotols | /gotosf | /gotolv | /givemoney");
SendClientMessage(playerid,GELB," /takewaffenschein | /specf | /setskin | /gotocar | /getcar");
SendClientMessage(playerid,GELB," /sethp | /setarmor | /giveallescheine | /giveperso | /setint");
SendClientMessage(playerid,GELB," /settank | /giveweapon");
return 1;
}
if(IstSpielerAdmin(playerid,6))
{
SendClientMessage(playerid,GELB," /acar | /acard | /sduty | /w | /a | /kick | /pban | /ct4 | /spec");
SendClientMessage(playerid,GELB," /specaus | /slap | /setworld | /freeze | /unfreeze | /gt | /fix ");
SendClientMessage(playerid,GELB," /goto | /gethere | /o | /reporthilfe | /specf | /showall | /unshowall");
SendClientMessage(playerid,GELB," /respawnallcars | /gozoll | /gotols | /gotosf | /gotolv | /givemoney");
SendClientMessage(playerid,GELB," /takewaffenschein | /specf | /setskin | /gotocar | /getcar");
SendClientMessage(playerid,GELB," /sethp | /setarmor | /giveallescheine | /giveperso | /setint");
SendClientMessage(playerid,GELB," /settank | /giveweapon | /unban | /setname | /makeleader | /makeadmin");
return 1;
}
if(IstSpielerAdmin(playerid,7))
{
SendClientMessage(playerid,GELB," /acar | /acard | /sduty | /w | /a | /kick | /pban | /ct4 | /spec");
SendClientMessage(playerid,GELB," /specaus | /slap | /setworld | /freeze | /unfreeze | /gt | /fix ");
SendClientMessage(playerid,GELB," /goto | /gethere | /o | /reporthilfe | /specf | /showall | /unshowall");
SendClientMessage(playerid,GELB," /respawnallcars | /gozoll | /gotols | /gotosf | /gotolv | /givemoney");
SendClientMessage(playerid,GELB," /takewaffenschein | /specf | /setskin | /gotocar | /getcar");
SendClientMessage(playerid,GELB," /sethp | /setarmor | /giveallescheine | /giveperso | /setint");
SendClientMessage(playerid,GELB," /settank | /giveweapon | /unban | /setname | /makeleader | /makeadmin | /gmx");
return 1;
}
return 1;
}
Sollte funktionieren, sofern dein IstSpielerAdmin abfragt, ob das Adminlevel größer oder gleich ( => ) ist, wie der angegebene Wert.