Kann mir wer helfen? Ich hab da ein Befehl gebastelt aber der zeigt mir den falschen Rang an.
Also ich speicher mit MySQL und das soll so funktionieren, dass jeder Rang seine eigenen Helpliste bekommt aber es wird immer nur die für den Probe Supporter angezeigt.
ocmd:ah(playerid,params[])
{
if(isAdmin(playerid,1))
{
SendClientMessage(playerid,COLOR_GREY,":::::::::::{FFF000}Admin Help{BEBEBE}:::::::::::");
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Probe Supporter:{BEBEBE} /ah, /delcar, /freeze, /unfreeze");
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Probe Supporter:{BEBEBE} /aduty, /goto, /gethere, /heal, /tele");
SendClientMessage(playerid,COLOR_GREY,"");
}
else if(isAdmin(playerid,2))
{
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Supporter:{BEBEBE} /ah, /spawncar, /delcar, /freeze, /unfreeze");
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Supporter:{BEBEBE} /aduty, /goto, /gethere, /clearchat, /heal, /tele");
SendClientMessage(playerid,COLOR_GREY,"");
}
else if(isAdmin(playerid,3))
{
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Community Manager:{BEBEBE} /ah, /spawncar, /delcar, /freeze, /unfreeze");
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Community Manager:{BEBEBE} /aduty, /goto, /gethere, /slap, /clearchat, /heal, /tele");
SendClientMessage(playerid,COLOR_GREY,"");
}
else if(isAdmin(playerid,4))
{
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Scripter:{BEBEBE} /ah, /spawncar, /delcar, /freeze, /unfreeze, /gmx, /jetpack, /stopjetpack");
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Scripter:{BEBEBE} /aduty, /goto, /gethere, /slap, /clearchat, /heal, /tele, /givegun");
SendClientMessage(playerid,COLOR_GREY,"");
}
else if(isAdmin(playerid,5))
{
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Server Leiter:{BEBEBE} /ah, /spawncar, /delcar, /freeze, /unfreeze, /gmx, /jetpack, /stopjetpack");
SendClientMessage(playerid,COLOR_GREY,"{FFFF00}Server Leiter:{BEBEBE} /aduty, /goto, /gethere, /slap, /clearchat, /gotocoords, /heal, /tele, /givegun");
SendClientMessage(playerid,COLOR_GREY,"");
}
else return SendClientMessage(playerid,COLOR_DRED,"Dein Adminrang ist zu niedrig!");
return 1;
}