dcmd_admins not working
#1

When i am typing /admins it isn't showing the admins. Hope somebody can help me
pawn Код:
dcmd_admins(playerid, params[])
{
#pragma unused params
new string[128];
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, oranje, "Cookie-Wars Admins");
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][level] < 0)
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"Try Out Moderator: %s | Level: %d", sendername,pInfo[i][level]);
SendClientMessage(playerid,oranje, string);
}
else if(pInfo[i][level] < 2)
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"Moderator: %s | Level: %d", sendername,pInfo[i][level]);
SendClientMessage(playerid,oranje, string);
}
else if(pInfo[i][level] < 3)
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"Try Out Administrator: %s | Level: %d", sendername,pInfo[i][level]);
SendClientMessage(playerid,oranje, string);
}
else if(pInfo[i][level] < 4)
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"Administrator: %s | Level: %d", sendername,pInfo[i][level]);
SendClientMessage(playerid,oranje, string);
}
else if(pInfo[i][level] < 5)
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"Owner: %s | Level: %d", sendername,pInfo[i][level]);
SendClientMessage(playerid,oranje, string);
}
}
}
}
return 1;
}
Reply
#2

hmm try to change

pawn Код:
return 1;
to

pawn Код:
return 0;
Reply
#3

Why bumping a old topic?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)