Raised This Month: $ Target: $400
 0% 

To happen of MSG to Menu.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
twiister
Senior Member
Join Date: Mar 2013
Location: Argentina
Old 03-20-2014 , 22:02   To happen of MSG to Menu.
Reply With Quote #1

Good as he says the title, I need help with this code. Me Aparese as 'msg' But I want that aparesca as menu:

Example:



Code:

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

#define PLUGIN "Top Knives"
#define VERSION "1.0"
#define AUTHOR "[R]ak"

#define is_valid_player(%1)    ((1 <= %1 <= g_MaxPlayers) && is_user_alive(%1))

#define MarkBite(%0,%1)    (%0 |= (1 << (%1 & 31)))
#define IsBite(%0,%1)    (%0 & (1 << (%1 & 31)))

new g_PlayerKnives[33], g_MaxPlayers

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /showhud""cmdShowHud")
    
    
g_MaxPlayers get_maxplayers()
}

public 
cmdShowHud(id) {
    
    new 
ids[5], num
    
    get_top_knives
(idsnum)
    
    new 
Name[32], Msg[256], tempid
    
    add
(Msgcharsmax(Msg), "TOP KNIFE")
    
    for(new 
inumi++) {
        
        
tempid ids[i]
        
        
get_user_name(tempidNamecharsmax(Name))
        
        
format(Msgcharsmax(Msg), "%s^n%d.- %s Knives: %d"Msgi+1Nameg_PlayerKnives[tempid])
    }
    
    
set_hudmessage(255255255, -1.00.1006.06.0)
    
show_hudmessage(idMsg)
        
    return 
PLUGIN_HANDLED
}

public 
client_death(attackervictimwpconst) {
    
    if(!
is_valid_player(attacker) || wpconst != CSW_KNIFE)
        return
        
    
g_PlayerKnives[attacker]++
    
}

public 
client_disconnect(id)
    
g_PlayerKnives[id] = false

get_top_knives
(Cell[5], &num) {
    
    static 
tempididBitCheckId
    num 
0
    BitCheckId 
0
        
    
while(num != 5) {
    
        
tempid 0
        
        
for(id 1id <= g_MaxPlayersid++) {
            
            if(!
is_user_connected(id) || IsBite(BitCheckIdid) || g_PlayerKnives[id] < g_PlayerKnives[tempid])
                continue;
            
            
tempid id
        
}
    
        if(!
tempid)
            break;
    
        
Cell[num++] = tempid;
        
MarkBite(BitCheckIdtempid)
        
    }

Help please! Thank you
twiister is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 03-20-2014 , 22:04   Re: To happen of MSG to Menu.
Reply With Quote #2

WHAT?!
__________________
Like my clean plugins and work?
Baws is offline
minato
Senior Member
Join Date: May 2010
Location: Rosario
Old 03-21-2014 , 01:11   Re: To happen of MSG to Menu.
Reply With Quote #3

menu_create + menu_additem and menu_display ?
__________________

Last edited by minato; 03-21-2014 at 01:12.
minato is offline
Send a message via MSN to minato
twiister
Senior Member
Join Date: Mar 2013
Location: Argentina
Old 03-21-2014 , 09:09   Re: To happen of MSG to Menu.
Reply With Quote #4

I'm sorry.

The plugin published does this function:



he want a menu shows top Knives by menu: (Example)

twiister is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-21-2014 , 09:19   Re: To happen of MSG to Menu.
Reply With Quote #5

Since you created 2 threads for this (which you are not supposed to do), do you want someone to fix it for you or guide you in the right direction so you can fix it yourself?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
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 01:44.


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