Hallo ich habe folgendes Probem.
Ich habe den Befehl gebastelt und er wird aber nicht so ausgeführt wie ich es möchte. Das soll so sein, das der ausliest welches Admin level der Spieler hat und dan die Befehle bekommt die er eingeben kann. Es kommt nur der erste Teil wenn ich ihn Ingame ausführe.
ocmd:adminhelp(playerid,params[])
{
if(pAdmin(playerid,1))
{
SendClientMessage(playerid,GELB,"________________|Adminbefehle|________________");
SendClientMessage(playerid,GELB,"| Supporterbefehle |");
SendClientMessage(playerid,GELB,"|- /goto - /gethere - /sethp -/setarmor|");
SendClientMessage(playerid,GELB,"|- /kick - /freeze - /unfreeze |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
}
else if(pAdmin(playerid,2))
{
SendClientMessage(playerid,GELB,"________________|Adminbefehle|________________");
SendClientMessage(playerid,GELB,"| Supporterbefehle |");
SendClientMessage(playerid,GELB,"|- /goto - /gethere - /sethp -/setarmor|");
SendClientMessage(playerid,GELB,"|- /kick - /freeze - /unfreeze |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Moderatorbefehle |");
SendClientMessage(playerid,GELB,"|- /veh - /ban |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
}
else if(pAdmin(playerid,3))
{
SendClientMessage(playerid,GELB,"________________|Adminbefehle|________________");
SendClientMessage(playerid,GELB,"| Supporterbefehle |");
SendClientMessage(playerid,GELB,"|- /goto - /gethere - /sethp -/setarmor|");
SendClientMessage(playerid,GELB,"|- /kick - /freeze - /unfreeze |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Moderatorbefehle |");
SendClientMessage(playerid,GELB,"|- /veh - /ban |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Administratorbefehle |");
SendClientMessage(playerid,GELB,"|- /givemoney - /givegun |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
}
else if(pAdmin(playerid,4))
{
SendClientMessage(playerid,GELB,"________________|Adminbefehle|________________");
SendClientMessage(playerid,GELB,"| Supporterbefehle |");
SendClientMessage(playerid,GELB,"|- /goto - /gethere - /sethp -/setarmor|");
SendClientMessage(playerid,GELB,"|- /kick - /freeze - /unfreeze |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Moderatorbefehle |");
SendClientMessage(playerid,GELB,"|- /veh - /ban |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Administratorbefehle |");
SendClientMessage(playerid,GELB,"|- /givemoney - /givegun |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Co. Ownerbefehle |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
}
else if(pAdmin(playerid,5))
{
SendClientMessage(playerid,GELB,"________________|Adminbefehle|________________");
SendClientMessage(playerid,GELB,"| Supporterbefehle |");
SendClientMessage(playerid,GELB,"|- /goto - /gethere - /sethp -/setarmor|");
SendClientMessage(playerid,GELB,"|- /kick - /freeze - /unfreeze |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Moderatorbefehle |");
SendClientMessage(playerid,GELB,"|- /veh - /ban |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Administratorbefehle |");
SendClientMessage(playerid,GELB,"|- /givemoney - /givegun |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Co. Ownerbefehle |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
SendClientMessage(playerid,GELB,"| Ownerbefehle |");
SendClientMessage(playerid,GELB,"|- /restart - /givedp |");
SendClientMessage(playerid,GELB,"|____________________________________________|");
}
else return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
return 1;
}
Hoffe auf Schnelle hilfe.
Mit freundlichen Grüßen,
K3ksii