ocmd:a(playerid,params[])
{
if(AdminLevel[playerid] >= 1)
{
new name[128],text[128],string[128];
if(sscanf(params,"s",text))return SendClientMessage(playerid,Color_Red,"Verwendung /a [text]");
if(AdminLevel[playerid] == 1)
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Supporter ** %s: %s **",name,text);
SendAdminMessage(Color_Gold,string);
return 1;
}
if(AdminLevel[playerid] == 2)
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Supporter ** %s: %s **",name,text);
SendAdminMessage(Color_Gold,string);
return 1;
}
if(AdminLevel[playerid] == 3)
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Supporter ** %s: %s **",name,text);
SendAdminMessage(Color_Gold,string);
return 1;
}
if(AdminLevel[playerid] == 4)
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Admin** %s: %s **",name,text);
SendAdminMessage(Color_Gold,string);
return 1;
}
if(AdminLevel[playerid] == 5)
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Fulladmin** %s: %s **",name,text);
SendAdminMessage(Color_Gold,string);
return 1;
}
if(AdminLevel[playerid] == 2000)
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Server Leitung** %s: %s **",name,text);
SendAdminMessage(Color_Gold,string);
return 1;
}
ALog(string);
return 1;
}
else
{
SendClientMessage(playerid,Color_Red,"Du hast keinen Zugriff auf den Befehl benötigt:Supporter");
}
return 1;
}
Das ist gut habe ich auch