02.09.2010, 17:22
As the topic says, I want to make an Rcon command if that's possible like uhm...writing a rcon command on console, but im not sure if that's possible, is it?
Something like this? https://sampwiki.blast.hk/wiki/OnRconCommand
|
dcmd_command(playerid,params[])
{
if(IsPlayerAdmin))
{
// stuff here
}
return 1;
}
No that's when you enter a pre-made rcon command. I want to make my own. And Dippy, my own functions like? Any threads about this or any info?
|
public OnRconCommand(cmd[])
{
if(strcmp("test", cmd, true) == 0)
{
print("It works");
}
return 1;
}
public OnRconCommand(cmd[])
{
if( !strcmp(cmd, "test", true ))
return print( "test message" );
return true;
}