I have this code....
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/adm", true) == 0)
    {
        new nadms, name[MAX_PLAYER_NAME];
        SendClientMessage(playerid, -1, "____|CoD:SaMp Online Administrators|____");
       
        for( new i=0; i<MAX_PLAYERS; i++ )
        {
            if( IsPlayerConnected(i) && !IsPlayerNPC(i) )
            {
                GetPlayerName (i, name, sizeof(name) );
                if(!strcmp(name, "Alex_Obando", false)) {
                    SendClientMessage(playerid, -1, "Alex_Obando (Owner Administrator).");
                    nadms++;
                }
                if(!strcmp(name, "Jackson", false)) {
                    SendClientMessage(playerid, -1, "Jackson Level 1.");
                    nadms++;
                }
            }
        }
        if(nadms == 0) SendClientMessage(playerid, -1, "No Administrators are online.");
    }
    return 1;
}
untested, modified in a minute.
Reply


Messages In This Thread
I have this code.... - by Alex_Obando - 05.08.2011, 19:32
Re: I have this code.... - by iPLEOMAX - 05.08.2011, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)