Load Fs command
#1

Like : if i am rcon logged-in and i used a cmd : /rcon manage : then a dialog will show up showing all anti cheats bla bla bla ... . and if I click any one of them it will enable and if i click again it will disable ... .

Surely it will require /rcon loadfs

My question is how can i make OnDialogResponse to load fs.?
Reply
#2

by using OnDialogResponse and SendRconCommand

This is how to loadfs in SendRconCommand

pawn Код:
SendRconCommand("loadfs YourFSName");
Reply
#3

Quote:
Originally Posted by Romel
Посмотреть сообщение
by using OnDialogResponse and SendRconCommand

This is how to loadfs in SendRconCommand

pawn Код:
SendRconCommand("loadfs YourFSName");
Ohh ok tnx but (SendRconCommand) ...> only rcon admins can use this ??
Reply
#4

No example when you add SendRconCommand on your test command that doesn't check if your rcon command it will automatic do what you wrote in SendRconCommand if you want the command for rcon admins only use

pawn Код:
if(!IsPlayerAdmins(playerid)) return //do whatever you want
this check if player is not login as rcon
Reply
#5

Quote:
Originally Posted by Romel
Посмотреть сообщение
No example when you add SendRconCommand on your test command that doesn't check if your rcon command it will automatic do what you wrote in SendRconCommand if you want the command for rcon admins only use

pawn Код:
if(!IsPlayerAdmins(playerid)) return //do whatever you want
this check if player is not login as rcon
Ok tnx +rep for you ..

By the way nice script in your signature lol ..
Reply
#6

Quote:
Originally Posted by MichaelProPlayer
Посмотреть сообщение
Ohh ok tnx but (SendRconCommand) ...> only rcon admins can use this ??
yes only rcon admin can use that command
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)