17.07.2017, 21:28
Hey, why custom functions in OnRconCommand doesn't work at all? Even the default example given in Wiki SA:MP?
https://sampwiki.blast.hk/wiki/OnRconCommand
This will print Player X sent rcon command on the console but won't send any message to players, why?
https://sampwiki.blast.hk/wiki/OnRconCommand
pawn Код:
public OnRconCommand(cmd[])
{
if(!strcmp(cmd, "hello", true))
{
SendClientMessageToAll(0xFFFFFFAA, "Hello World!");
print("You said hello to the world."); // This will appear to the player who typed the rcon command in the chat in white
return 1;
}
return 0;
}