Best approach to trigger callback between gamemode and filterscript
#3

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
I think you can simply use CallRemoteFunction.
(Example) I wanted to warn admins (with an AdmWarn obivously) when something specific happens in my FS, so I decied to do this:
PHP код:
Local_AdmWarn(message[], {Float,_}:...)
{
    new 
buffer[244];
    
format(buffersizeof(buffer), message___1); // using y_va
    
print(message);
    return 
CallRemoteFunction("SendInternalMessage""is"0buffer);

And in the gamemode:
PHP код:
SendInternalMessage(message_type, const message[])
{
    if(!
message_type)
        return 
AdmWarn(message);
    else
        return 
AdmCmd(message);

I see.... I've thinked about CallRemoteFunction too, but I didn't try it yet. I'll try now
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)