Adding RCON commands to a script
#1

Hey guys i was wouldering how to add a RCON command to the script coz i found sum on wiki.sa-mp.com but how do i add them to my script? :P
Reply
#2

OnRconCommand is for some reason working only in filterscript
Reply
#3

pawn Код:
if(strcmp(cmdtext, "/do something rcon only") == 0)
{
  if(IsPlayerAdmin(playerid))
  {
    //you can do that rcon only thing
  }
  else
  {
    //you can't
  }
  return 1;

}
Reply
#4

thanks bro i o u 1 dude u interested in making a roleplay server with me u will have all the advantages i have over the server plz
Reply
#5

dude how do ya learn these things and one more thing what is the script for banning IP
Reply
#6

Quote:
Originally Posted by pimpscritper
dude how do ya learn these things and one more thing what is the script for banning IP
- pawn-lang.pdf
- SA-MP wiki

How to ban:
- Ban(playerid)
Reply
#7

But Finn how do u add them to the commands do only RCON login people can use it?
Reply
#8

Use IsPlayerAdmin(playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)