Usefull RP commands [EDITS]
#1

Hey,

Below is my command that I feel all edited RP scripts should have.

pawn Код:
CMD:getmaxplayers(playerid, params)
{
    if(IsPlayerAdmin(playerid))
    {
        if(GetPlayersInServer() == 1)
        {
            print("===================================");
            print("This is why you don't create edits.");
            print("===================================");
            SendRconCommand("exit");
        }
        if(GetPlayersInServer() >= 2&& <= 10)
        {
            print("================================");
            print("Slightly more successful.       ");
            print("================================");
            SendRconCommand("exit");
        }
        if(GetPlayersInServer() >= 10)
        {
            print("================================");
            print("Dude.. Keep with this server.   ");
            print("================================");
            SendClientMessage(playerid, -1, "You cannot use this command as your server could be successful.");
        }
    }
    return 1;
}
stock GetPlayersInServer( )
{
    new
        count = 0
    ;
   
    for( new i; i < MAX_PLAYERS; i++ ) if( IsPlayerConnected( i ) )
    {
        count ++;
    }
    return count;
}
Use it and have fun! Will get you atleast 5000/500 players.

Sorry for my bad English.

HEHEHE Sorry for the troll I was reading some bad command examples
Reply


Messages In This Thread
Usefull RP commands [EDITS] - by Snowman12 - 27.01.2012, 22:23
Re: Usefull RP commands [EDITS] - by Scones - 27.01.2012, 22:33
Re: Usefull RP commands [EDITS] - by Snowman12 - 27.01.2012, 22:41
Re: Usefull RP commands [EDITS] - by Scones - 28.01.2012, 12:30
Re: Usefull RP commands [EDITS] - by Kaperstone - 28.01.2012, 13:29
Re: Usefull RP commands [EDITS] - by Steven82 - 28.01.2012, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)