AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SpecInfo changes (https://forums.alliedmods.net/showthread.php?t=171358)

STr!ker 11-05-2011 01:16

SpecInfo changes
 
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

STr!ker 04-17-2012 11:12

Re: SpecInfo changes
 
push

Exolent[jNr] 04-17-2012 11:17

Re: SpecInfo changes
 
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));


All times are GMT -4. The time now is 14:27.

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