Hi, wollte gerade Rangnamen machen,
Funktioniert aber nicht.
ocmd:a(playerid,params[])
{
//RANGNAME
new Rangnameadmin[16];
switch(sInfo[playerid][adminlevel])
{
case 0:(Rangnameadmin = "Supporter");
case 1:(Rangnameadmin = "Moderator");
case 2:(Rangnameadmin = "Super Moderator");
case 3:(Rangnameadmin = "Administrator");
case 4:(Rangnameadmin = "Projektleiter");
}
new name[MAX_PLAYER_NAME], text[128];
if(!IsPlayerAnAdmin(playerid,1))return SendClientMessage(playerid, ROT, "Du bist kein Admin!");
if(sscanf(params,"s[128]",text))return SendClientMessage(playerid,ROT,"Befehl: /a 'Nachricht'");
GetPlayerName(playerid,name,sizeof(name));
format(text,sizeof(text),"**%s %s: %s**",Rangnameadmin,name,text);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))continue;
if(!IsPlayerAnAdmin(i,1))continue;
SendClientMessage(i,GELB,text);
}
return 1;
}
Weiss jemand woran das liegt ?