AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Last stand and ... (https://forums.alliedmods.net/showthread.php?t=113147)

SpokY 12-23-2009 21:20

[HELP] Last stand and ...
 
Deleat please

SpokY 12-24-2009 13:27

Re: [HELP] Last stand and ...
 
i have post the wrong code, now i have upgrade the code sry :S
this is now the right code
cs 1.6
pleaseee help

SpokY 01-10-2010 05:02

Re: [HELP] Last stand and ...
 
push

MouseSplash! 01-10-2010 05:12

Re: [HELP] Last stand and ...
 
http://forums.alliedmods.net/showthr...=ultimo+pedido

this is the last resquest...

SpokY 01-10-2010 06:15

Re: [HELP] Last stand and ...
 
yes, but this plugin what do u watch me is for source or ?

MouseSplash! 01-10-2010 07:09

Re: [HELP] Last stand and ...
 
Quote:

Originally Posted by SpokY (Post 1050171)
yes, but this plugin what do u watch me is for source or ?

your lr just give weapon.. for terrorist no cts...

and look this..

PHP Code:

public duelmenu(id)
{    
        new 
cts[32], ts[32], ctsnumtsnum 
        
new CsTeams:team 
         
        
for (new id=1id <= g_iMaxPlayersid++)
        {
            if (!
is_user_connected(id) || !is_user_alive(id)) 
            { 
                continue 
            } 
        
            
team cs_get_user_team(id
        
            if (
team == CS_TEAM_T
            { 
                
ts[tsnum++] = id
            

            else if (
team == CS_TEAM_CT
            { 
                
cts[ctsnum++] = id
            

        } 
        if (
tsnum == && ctsnum >= 1
        {  
         
/* there is... if terror = 1 and cts 1 or more 
             open menu,  HERe is go the menu */
        
        
}
        else if    (
tsnum == && ctsnum 1)
        {
            
client_print(idprint_chat"dont have cts for dueling.")
        }
        else if    (
tsnum && ctsnum >= 1)
        {
            
client_print(idprint_chat"only last terrorist use this menu")
        }
    }
 return 
PLUGIN_HANDLED;



sorry for my english

look this tutorial menu :D
http://forums.alliedmods.net/showthread.php?t=46364


PD: dont make double post or u banned :S

SpokY 01-10-2010 07:18

Re: [HELP] Last stand and ...
 
yes is my bad sorry for double posting :S deleat this here please.

i need only one help.. only the last allive T can use the commands..

please deleat one therad.

master4life 01-10-2010 07:37

Re: [HELP] Last stand and ...
 
Add getplayers()

example:
PHP Code:

public menuid ) {
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum"ce""TERRORIST" );

    if( 
iNum )
        return 
PLUGIN_CONTINUE;
    
    
menu_displayidg_szMenu );
    
    return 
PLUGIN_HANDLED;    



SpokY 01-10-2010 07:40

Re: [HELP] Last stand and ...
 
i dont understand :S

master4life 01-10-2010 07:43

Re: [HELP] Last stand and ...
 
lol

PHP Code:

public menu(id
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum"ce""TERRORIST" );

    if( 
iNum ) {
        
client_printidprint_chat"[AMXX] You must the last prisoner being, to say^4 /lr^1 for your last request!" );
        return 
PLUGIN_CONTINUE;
    }
    
    new 
menu menu_create("x.eS | Last Request""menu_handler");
    
    
menu_additem(menu"Keine Footsteps""1");
    
menu_additem(menu"255 HP""2");
    
menu_additem(menu"255 Armor""3");
    
menu_additem(menu"Geringe Schwerkraft""4");
    
menu_additem(menu"SoS - AK47""5");
    
menu_additem(menu"SoS - M4A1""6");       
    
menu_additem(menu"SoS - Deagle""7");
    
menu_additem(menu"SoS - Scout""8"); 

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu);




All times are GMT -4. The time now is 04:06.

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