[AJUDA] /admins
#8

Vocк deve usar strins, para inserir uma string(Info. dos admins) em outra.
pawn Код:
CMD:admins(playerid, params[])
{
    new MyStr[256];
    new bool: ademir;
    for(new i, PP = GetMaxPlayers(); i < PP; ++i)
    {
        if(PlayerInfo[i][pLevel] >= 1)
        {
            ademir = true;
            new PlayerName[24], str[128];
            GetPlayerName(i,PlayerName,MAX_PLAYER_NAME);
            format(str, sizeof(str),"{80FF00}%s [ID:{FFFF00}%d{80FF00}] Level:{FFFF00}%d\n",PlayerName,i,PlayerInfo[i][pLevel]);
            new stringLength = strlen(MyStr);
            strins(MyStr, str, stringLength);
        }
    }
    if(!ademir)
            return ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"Admins","{FF0000}Temos Nenhum Administrador Online!\nCaso Ver Algum Cheaters Denuncie\nEm Nossa Comunidade\nhttp://hunterserver.6te.net","Ok","");
           
    ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Admins",MyStr,"OK","");
    return 1;
}
Reply


Messages In This Thread
[AJUDA] /admins - by ReDKiiL - 25.09.2011, 05:33
Re: [AJUDA]HELP /admins - by Hardware - 25.09.2011, 05:45
Re: [AJUDA]HELP /admins - by Falcon. - 25.09.2011, 05:49
Respuesta: Re: [AJUDA]HELP /admins - by ReDKiiL - 25.09.2011, 06:14
Re: [AJUDA]HELP /admins - by iBigMan - 25.09.2011, 06:17
Re: [AJUDA]HELP /admins - by Lуs - 25.09.2011, 06:25
Respuesta: Re: [AJUDA]HELP /admins - by ReDKiiL - 25.09.2011, 06:28
Re: [AJUDA]HELP /admins - by Shelby - 25.09.2011, 16:12
Respuesta: [AJUDA] /admins - by ReDKiiL - 25.09.2011, 18:35
Re: [AJUDA] /admins - by davidjnio - 26.09.2011, 14:51

Forum Jump:


Users browsing this thread: 4 Guest(s)