27.11.2012, 11:57
hey guys , i need some help here. hmm
im trying to make /admins cmd , but its fail :\
im not scripting for a long time and now im just back , and i didnt good on scripting anymore hmm ,
gonna learn it back like a shit xD
here is my code.
when no admin online , its spam it !
idk if it show an online admin ? hmm
like a shit lol . hmm help me plss
im trying to make /admins cmd , but its fail :\
im not scripting for a long time and now im just back , and i didnt good on scripting anymore hmm ,
gonna learn it back like a shit xD
here is my code.
pawn Код:
CMD:admins(playerid, params[])
{
new Count = 0;
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0)
{
new str[1000];
new Admin[MAX_PLAYER_NAME];
GetPlayerName(i, Admin, sizeof(Admin));
format(str, sizeof(str), "[Admin]'%s - level %d", Admin, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, lightred, str);
Count++;
}
if(Count == 0)
{
SendClientMessage(playerid, lightred, "[System]: No Admin Online!");
}
}
return 1;
}
pawn Код:
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
like a shit lol . hmm help me plss