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

small plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-17-2020 , 03:16   small plugin
Reply With Quote #1

can someone create a small plugin which will show player info of alive to spectator
Example: Spectating [PlayerName] | [XP: %i]
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-17-2020 , 07:08   Re: small plugin
Reply With Quote #2

Which XP plugin are you using, can u post the code please?
__________________

Last edited by Napoleon_be; 01-17-2020 at 07:08.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-17-2020 , 12:43   Re: small plugin
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
Which XP plugin are you using, can u post the code please?
I don't use any XP mod current so instead xp you can use rank , i used xp as example.
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-18-2020 , 20:50   Re: small plugin
Reply With Quote #4

Please use descriptive topic titles, it's the rule.
__________________
fysiks is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-19-2020 , 06:16   Re: small plugin
Reply With Quote #5

try this

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <csstats>
#include <fakemeta_util>

#define PLUGIN "ShowSpecInfo"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
set_task(0.1"ShowSpecInfo", .flags "b");
}

public 
ShowSpecInfo()
{
    new 
iPlayers[32], iNumiSpecPlayerszName[33], iRankiMaxRankiStats[8], iBodyhits[8];
    
get_players(iPlayersiNum"ch");
    
    for(new 
iiNumi++)
    {
        
iSpecPlayer pev(iPlayers[i], pev_iuser2);
        
        if(
is_user_alive(iSpecPlayer) && !is_user_alive(iPlayers[i]))
        {
            
get_user_name(iSpecPlayerszNamecharsmax(szName));

            
iRank get_user_stats(iSpecPlayeriStatsiBodyhits);
            
iMaxRank get_statsnum();

            
set_hudmessage(180180180, -1.00.006.00.10.0,0.0, -1);
            
show_hudmessage(iPlayers[i], "Spectating [%s] | [Rank: %i / %i]"szNameiRankiMaxRank);
            
        }
    }

__________________

Last edited by Napoleon_be; 01-19-2020 at 06:17.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 03:30.


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