Raised This Month: $51 Target: $400
 12% 

View Poll Results: chnage the version name of zm mod
its dont have sma file only amxx 3 75.00%
plz give any plugin or way 3 75.00%
Multiple Choice Poll. Voters: 4. You may not vote on this poll

change the server version name


Post New Thread Reply   
 
Thread Tools Display Modes
real sap
Member
Join Date: Aug 2015
Location: India
Old 08-24-2015 , 09:25   Re: change the server version name
Reply With Quote #11

sorry for my (capital letter) messages . Acutally the story is that i awas running my sv with freind he back stab me and delete my sv plugins sma files from compiler and sv data. Thats why i m stuck .I hope some day i will find solution or change amxx to sma
real sap is offline
Send a message via Skype™ to real sap
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-24-2015 , 20:18   Re: change the server version name
Reply With Quote #12

If you are the developer of the plugin the you would have a copy of the source code on your computer. Nobody will create a .amxx to .sma converter.
__________________
fysiks is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-25-2015 , 04:26   Re: change the server version name
Reply With Quote #13

Assuming that your message is printed with client_print, here is how you can block it(credits:https://forums.alliedmods.net/showthread.php?t=142969)

PHP Code:
#include <amxmodx>
#include <orpheu>

new const MessageToBlock[] = "zombie plague 4.3 by"

public plugin_init()
{
    
OrpheuRegisterHook(OrpheuGetFunction("UTIL_ClientPrint"), "UTIL_ClientPrint"OrpheuHookPre)
}

public 
OrpheuHookReturn:UTIL_ClientPrint(PlayerMessageTypeMessage[])
{
    if(
contain(MessageMessageToBlock) != -1)
    {
        return 
OrpheuSupercede
    
}
    return 
OrpheuIgnored

You will need orpheu module, also be sure to use this signature and not the one provided by Arkshine:
Code:
{
    "name"        : "UTIL_ClientPrint",
    "library"     : "amxmodx_mm",
    "arguments"   :
    [
        {
            "type" : "edict_s *"
        },
        {
            "type" : "int"
        },
        {
            "type" : "char *"
        }
    ],
    "identifiers" :
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x83,"*","*","*","*","*",0x00,0x74,"*",0x8B,0x44,"*","*",0x53,0x56,0x8B,0x74,"*","*",0x8A,0x9E,"*","*","*","*",0xC6,0x86,"*","*","*","*",0x00,0x85,0xC0,0x74,"*",0x50,0xA1,"*","*","*","*",0x6A,0x00,0x50,0x6A,0x01,0xEB]
        },    
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "UTIL_ClientPrint"
        }
    ]
}
It is mostly the same, just the library name is changed so it match.
__________________

Last edited by HamletEagle; 08-25-2015 at 04:27.
HamletEagle is offline
real sap
Member
Join Date: Aug 2015
Location: India
Old 08-26-2015 , 17:56   Re: change the server version name
Reply With Quote #14

@ Hamlet Eagle really thanks for the help . I really appriciate your help


thank you (+karma)
real sap is offline
Send a message via Skype™ to real sap
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode