[HELP]save hex code to file?
#5

Quote:
Originally Posted by gouster3
Посмотреть сообщение
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;
}
hex value u can see in this thread is from compiled .amx.

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[]);
+ create file.
Why don't you simply load a filterscript with code:
pawn Код:
#define FILTERSCRIPT

#include <a_samp>

public OnRconCommand(cmd[])
{
    return 0;
}
and then use OnRconCommand callback normally to your gamemode?
Reply


Messages In This Thread
[HELP]save hex code to file? - by gouster3 - 26.08.2016, 05:31
Re: [HELP]save hex code to file? - by SickAttack - 26.08.2016, 05:52
Re: [HELP]save hex code to file? - by AbyssMorgan - 26.08.2016, 06:04
Re: [HELP]save hex code to file? - by gouster3 - 26.08.2016, 14:57
Re: [HELP]save hex code to file? - by Konstantinos - 26.08.2016, 15:01
Re: [HELP]save hex code to file? - by gouster3 - 26.08.2016, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)