if(strfind(text,"#",true)==0)
{
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
if(pDaten[playerid][AdminLevel] >= 1)
{
format(string,sizeof(string),"Admin Chat:[Admin] %s: %s",name,text);
SendAdminMessage(COLOR_RED, string);
}
if(pDaten[playerid][Moderator] == 4 || pDaten[playerid][Moderator] == 5)
{
format(string,sizeof(string),"Admin Chat:[Moderator] %s: %s",name,text);
SendAdminMessage(COLOR_RED, string);
}
if(pDaten[playerid][Moderator] == 1 || pDaten[playerid][Moderator] == 2 || pDaten[playerid][Moderator] == 3)
{
format(string,sizeof(string),"Admin Chat:[Supporter] %s: %s",name,text);
SendAdminMessage(COLOR_RED, string);
}
return 0;
}
Versuchs, ich hab 0 Ahnung ob das geht...