Usefull RP commands [EDITS] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Usefull RP commands [EDITS] (
/showthread.php?tid=313919)
Usefull RP commands [EDITS] -
Snowman12 - 27.01.2012
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
Re: Usefull RP commands [EDITS] -
Scones - 27.01.2012
Not that this example is any better
Re: Usefull RP commands [EDITS] -
Snowman12 - 27.01.2012
meh your the prime example for someone who would go and edit some script anyways.
Re: Usefull RP commands [EDITS] -
Scones - 28.01.2012
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
Re: Usefull RP commands [EDITS] -
Kaperstone - 28.01.2012
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
Re: Usefull RP commands [EDITS] -
Steven82 - 28.01.2012
Was this an attempt to troll people? If so it's stupid.