Hi,
Ich hatte ein System gescriptet, womit man Adminankündigungen machen kann
dcmd_ao(playerid,params[])
{
new string[256];
if (sscanf(params, "s", string)) SendClientMessage(playerid, COLOR_GREY, "Info: /a(dmin) [Text]");
else if(strlen(string) < 4) SendClientMessage(playerid, COLOR_GREY, "*::* Die Nachricht muss mindestens 4 Buchstaben haben! *::*");
else
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(string, sizeof(string), "*%d Admin %s: %s", PlayerInfo[playerid][pAdmin], name, string);
}
else if(PlayerInfo[playerid][pSupporter] >= 1)
{
format(string, sizeof(string), "*%d Supporter %s: %s", PlayerInfo[playerid][pSupporter], name, string);
}
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Admin");
}
}
return 1;
}
Jedoch steht da immer du bist kein Admin
MFG