I have this code....
#1

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/adm", true) == 0)
    {
    new name[MAX_PLAYER_NAME];
    for( new i=0; i<MAX_PLAYERS; i++ )
    {
    if( IsPlayerConnected(i) && !IsPlayerNPC(i) )
    {
        GetPlayerName (i, name, sizeof(name) );
        if(!strcmp(name, "Alex_Obando", true)) return
        SendClientMessage(playerid, -1, "____|CoD:SaMp Online Administrators|____");
        SendClientMessage(playerid, -1, "Alex_Obando (Owner Administrator).");
    }
        else
        {
        SendClientMessage(playerid, -1, "No admins Online.");
        return 1;
        }
    }
}
    return 1;
}
But how I can add a new administrator like "Jackson" if 2 admins online xD?
pawn Код:
SendClientMessage(playerid, -1, "____|CoD:SaMp Online Administrators|____");
        SendClientMessage(playerid, -1, "Alex_Obando (Owner Administrator).");
        SendClientMessage(playerid, -1, "Jackson Level 1.");
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: 2 Guest(s)