Raised This Month: $ Target: $400
 0% 

Invalid player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-17-2010 , 17:15   Re: Invalid player
Reply With Quote #10

and do i rename the index of another function to?
like so
PHP Code:
public handgun_menu(tempid)
{
    
check_user(tempid)
    {
    
        new 
handgunmenu menu_create("\yChoose your handgun:""sub_handgun_menu")

        
menu_additem(handgunmenu"\wUsp""1"0);
        
menu_additem(handgunmenu"\wGlock""2"0);
        
menu_additem(handgunmenu"\wDual Elites""3"0);
        
menu_additem(handgunmenu"\wDeagle""4"0)
        
        
menu_setprop(handgunmenuMPROP_EXITMEXIT_ALL);
        
menu_display(idhandgunmenu0);
    }
    return 
PLUGIN_HANDLED

or like this, without renaming that
PHP Code:
public handgun_menu(id)
{
    
check_user(id)
    {
    
        new 
handgunmenu menu_create("\yChoose your handgun:""sub_handgun_menu")

        
menu_additem(handgunmenu"\wUsp""1"0);
        
menu_additem(handgunmenu"\wGlock""2"0);
        
menu_additem(handgunmenu"\wDual Elites""3"0);
        
menu_additem(handgunmenu"\wDeagle""4"0)
        
        
menu_setprop(handgunmenuMPROP_EXITMEXIT_ALL);
        
menu_display(idhandgunmenu0);
    }
    return 
PLUGIN_HANDLED

and how do i use it in a death event?
like this
PHP Code:
public PlayerDeath()
{
    new 
attacker read_data(1)
    new 
victim read_data(2)

    if( 
cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT)
    {
        
lr_started false
    
}
    if(
spray_on)
    {
        
server_cmd("decalfrequency 20")
        
spray_on false
    
}

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 03-17-2010 at 17:26.
drekes is offline
Send a message via MSN to drekes
 



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 08:48.


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