Raised This Month: $ Target: $400
 0% 

Menu with Use


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-24-2010 , 16:44   Re: Menu with Use
Reply With Quote #6

Quote:
Originally Posted by Linux inside View Post
First , Sry i m new in Thise Forum so excuse me when i done something Wrong

Second : Thank you for thise help , and i have thougt that i should make it like

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
g_iMaxPlayers get_maxplayers()
    
register_clcmd("+use""menu")
    
cvar_playerinfo register_cvar("jailbreak_playerinfo""1")
}

public 
menu (id)
{
    if (
cs_get_user_team(id) != CS_TEAM_CT || !is_user_alive(id))
    {
        return 
PLUGIN_HANDLED;
    } 
but i don t know how get the get_user_aiming to the next function that Glows the Player wich the Ct has Looked at . Any idea ?
The way that mine is set up is Where the comment is it is called when you press the use key.

So try it out. put something like

PHP Code:
get_user_aiming(idtargetbody)
new 
targname[18
get_user_name(idtargname17)
client_print(idprint_chat"You pressed the use key aiming at %s"targname
Doc-Holiday is offline
 



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 07:19.


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