Rcon Command problem
#1

i want to make rcon command /opengate1

How can i make this command to be only for Rcon Admins?

if(strcmp("/opengate1", cmdtext, true, 10) == 0)
{
MoveObject(Trader1,1644.6403,-1717.2532,32.8169,1.5000); // 1.5000 means how fast it has to open
return 1;
}
Reply
#2

Use IsPlayerAdmin function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)