[HITNO POMOC]/ADMINS KOMANDA

Započeo PROXY, Decembar 09, 2012, 19:51:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GF
Detaljan opis problema:znaci treba mi da se uradi komanda /admins i da pise
Admin:•Nick_Admina [Level] kad je na duznosti a kad nije ovako
Admin:[BELA]• Nick_Admina [Level]
Dio skripte:if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_RED, "Ovu komandu mogu koristiti samo igraci level 2+!");
return 1;
}
SendClientMessage(playerid, COLOR_GREEN, "Admins Online:");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338 && GetPVarInt(i, "OfficerUndercover") != 1)
{
format(string, 256, "• %s",sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
format(string, 256, "{FF0066}• %s {FFFFFF}[5]",sendername);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
}
}
return 1;
}

Uradio sam ovako,ali mi neradi kako treba!
Poslednja Izmena: Decembar 09, 2012, 20:12:06 POSLE PODNE od [BG]LaKy ^.-

Davide, mislim da mu nece raditi, ON: if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_RED, "Ovu komandu mogu koristiti samo igraci level 2+!");
return 1;
}
SendClientMessage(playerid, COLOR_GREEN, "Admins Online:");
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pVarijabla_Za_Admin_Duty] == 0)
{
format(string, 256, "• %s",sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
if(PlayerInfo[i][pVarijabla_Za_Admin_Duty] == 1)
{
format(string, 256, "{FF0066}• %s {FFFFFF}[5]",sendername);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
}
}
return 1;
}