26.08.2016, 14:57
Quote:
PHP код:
https://sampforum.blast.hk/showthread.php?tid=595203 |
I have OnRconCommand in my gamemode. but in samp there is some bug, and it is working only in fs.
so i want to create .amx file (filterscript) that will comunicate with my gm and make OnRconCommand working.
then i will just load this fs by using command in my gm.
file i want create:
Код:
#include <a_samp> public OnRconCommand(cmd[]) { CallRemoteFunction("OnRconCmd","s",cmd); return 1; }
then i can just use this in my gm:
Код:
//to ongamemodeinit: SendRconCommand(loadfs ../scriptfiles/fix); //fix will be name of created file public OnRconCmd(cmd[]) { return 1; } forward OnRconCmd(cmd[]);