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
#2

Not that this example is any better
Reply
#3

meh your the prime example for someone who would go and edit some script anyways.
Reply
#4

I am? xD I did like two times back in 09 other that all i have scripted is a gm for learning to do shit from scratch xD
Reply
#5

pawn Код:
if(GetPlayersInServer() == 0)
        {
            print("===================================");
            print("This is why you don't create edits.");
            print("===================================");
            SendRconCommand("exit");
        }
it will never send this message.
because you need at least 1 player to use this command.

and wrong section,this is the right place to release FS's: http://forum.sa-mp.com/forumdisplay.php?f=17
Reply
#6

Was this an attempt to troll people? If so it's stupid.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)