Please can someone hel me with this?
#1

Well as you can see below i am new to scripting but please dont jusdge.. Can someone just help me with this below?
Код:
	if (strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, COLOR_ADMIN_TOALL, "..::Admins Online and Status::..");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][power] >= 1 && PlayerInfo[i][power]!=53)
{
if(OnDuty[i])
else if(PlayerInfo[playerid][power]>=1);
{
{GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Trial Admin: %s [Level: %d] (On Duty)", sendername,PlayerInfo[i][power]);
SendClientMessage(playerid, 0x00FF40FF, string);
}
else if(PlayerInfo[playerid][power]>=3);
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Basic Admin: %s [Level: %d] (On Duty)", sendername,PlayerInfo[i][power]);
SendClientMessage(playerid, 0x00FF40FF, string);
}
else if(PlayerInfo[playerid][power]>=6);
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Senior Admin: %s [Level: %d] (On Duty)", sendername,PlayerInfo[i][power]);
SendClientMessage(playerid, 0x00FF40FF, string);
}
else if(PlayerInfo[playerid][power]>=9);
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Lead Admin: %s [Level: %d] (On Duty)", sendername,PlayerInfo[i][power]);
SendClientMessage(playerid, 0x00FF40FF, string);
}
else if(PlayerInfo[playerid][power]>=10);
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Head Admin: %s [Level: %d] (On Duty)", sendername,PlayerInfo[i][power]);
SendClientMessage(playerid, 0x00FF40FF, string);
}
else if(PlayerInfo[playerid][power]>=11);
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Community Co-owner: %s [Level: %d] (Off Duty)", sendername,PlayerInfo[i][power]);
SendClientMessage(playerid, 0xFF4500AA, string);
{
else if(PlayerInfo[playerid][power]>=12);
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Community Owner: %s [Level: %d] (On Duty)", sendername,PlayerInfo[i][power]);
SendClientMessage(playerid, 0x00FF40FF, string);
}
}
}
return 1;
}
Reply
#2

if(OnDuty[i]) is not opening or closing.
what else is the problem ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)