Hey Leute, ich bräuchte wieder einmal Hilfe.
Undzwar wünsche ich mir das mein /admins befehl vom Text zum Dialog umgeschrieben wird.
Währe nett wenn ihr das machen könntet
Würde dann eine Vorlage haben wenn ich andere mache *freu*
if (strcmp(cmdtext, "/admins", true) == 0)
{
SendClientMessage(playerid, Weiss, "Litle West Team Online:");
new i = 0, aname[256], string[256];
for(; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPVarInt(playerid,"Adminlevel")==1)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Supporter: %s", aname);
SendClientMessage(playerid, Gruen, string);
}
else if(GetPVarInt(playerid,"Adminlevel")==2)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Moderator: %s", aname);
SendClientMessage(playerid, Gruen, string);
}
else if(GetPVarInt(playerid,"Adminlevel")==3)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Super Moderator: %s", aname);
SendClientMessage(playerid, Orange, string);
}
else if(GetPVarInt(playerid,"Adminlevel")==4)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Administrator: %s", aname);
SendClientMessage(playerid, Orange, string);
}
else if(GetPVarInt(playerid,"Adminlevel")==5)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Fulladmin: %s", aname);
SendClientMessage(playerid, ROT, string);
}
}
}
return 1;
}
Mfg