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

SpecInfo changes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 11-05-2011 , 01:16   SpecInfo changes
Reply With Quote #1

Hello i am using this Plugin:
http://forums.alliedmods.net/showthr...=Ian+Cammarata

The problem is, that the admins are shown in the spectatorlist, but the plugin has a clcmd to hide the admins with say /spechide.

Now i try to make it, that they donīt need to write every map /spechide.

I have added a set_task in the client_connect task:

PHP Code:
public client_connectid )
{
    
cl_prefs[id] = 0;
    if( !
is_user_botid ) )
    {
        if( 
get_pcvar_nump_list_default ) ) cl_prefs[id] |= FL_LIST;
        if( 
get_pcvar_nump_keys_default ) ) cl_prefs[id] |= FL_KEYS;
    
set_task (1.0"toggle_hide")
    }
    
get_user_nameidcl_names[id], 20 );
    return 
PLUGIN_CONTINUE;

Then i try to add after the name of the watching player, that his money is shown in brackets.

l. 194:

i have tried this:
PHP Code:
                formatextmplistLIST_STR_LEN 1"^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t(%d) %s %s (%d):^n"count"%L"tmpnamecs_get_user_money); 
it says me that the symbol is undefined, but in another plugin this symbol works:
http://forums.alliedmods.net/showpos...62&postcount=7

Last edited by STr!ker; 11-05-2011 at 01:16.
STr!ker is offline
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 04-17-2012 , 11:12   Re: SpecInfo changes
Reply With Quote #2

push
STr!ker is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 11:17   Re: SpecInfo changes
Reply With Quote #3

Code:
#include <cstrike>
Code:
public client_authorized( id ) {     if( !is_user_bot( id ) )     {         if( access( id, IMMUNE_FLAG ) )       cl_prefs[id] |= FL_HIDE;     }     return PLUGIN_CONTINUE; }
Code:
formatex( tmplist, LIST_STR_LEN - 1, "^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t(%d) %s %s ($%d):^n", count, "%L", tmpname, cs_get_user_money(i));
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 20:58.


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