ajuda painel admin
#1

tou fazendo painel admin tava lendo no Wikipedia Sa-mp la lendo tava procurando como criar painel admin tipo quero criar painel explo novo admin tipo mod admin etc vip tavala ae tou criando meu do 0 como poe TIpo lv 1 2 3 4 ?
Код:
public OnPlayerCommandText(playerid,cmdtext[]) {
    new index, cmd[128];
    cmd = strtok(cmdtext, index);

    if (!strcmp("/mascotepainel",cmd,true,6))
    {
        if (IsPlayerAdmin(playerid) == 1 || AdminLevel[playerid] >0)
        {
            new tmp[128];
            tmp = strtok(cmdtext, index);
            if(!strlen(tmp)    || !IsNumeric(tmp)) {
                ShowPlayerDialog(playerid,0,1,"Admin Painel","Por favor, preencha Jogador ID","Acesso","Saнda");
            } else {
                new id=strval(tmp);
                if(!IsPlayerConnected(id))
                {
                    return SendClientMessage(playerid,0xFF1400FF,"Player nгo estб conectado");
                } else {
                    selected_id[playerid] = id;
                    new pName[32];
                    GetPlayerName(selected_id[playerid],pName,32);
                    new string[64];
                    format(string, sizeof string,"Painel Admin Para %s",pName);
                    if (AdminLevel[playerid] == 2 || IsPlayerAdmin(playerid))
                    {
quero bota tambem viaje ping outras coisa xD
Reply


Messages In This Thread
ajuda painel admin - by mascote - 11.09.2010, 05:10
Re: ajuda painel admin - by Ricop522 - 11.09.2010, 15:10
Re: ajuda painel admin - by SuB_ZeRo0_ - 11.09.2010, 15:32

Forum Jump:


Users browsing this thread: 2 Guest(s)