Raised This Month: $ Target: $400
 0% 

user weapon name.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-08-2009 , 00:47   Re: user weapon name.
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
Did you first call set_hudmessage()?
I don't get it.

btw here is the whole codes.

PHP Code:

/**************************************************
* AMXX Script  *      *
* Author: Yuri *      *
*  Version 0.1  * * * * * * * * * * * * * *
* Look at a player and see their name. lolz   *
***************************************************/
#include <amxmodx>
#include <amxmisc>

new friend[33]
public 
set_team(id)
friend[id] = read_data(2)

public 
hide_status(id){
set_hudmessage(0,0,0,0.0,0.0,00.00.010.00.04)
show_hudmessage(id,"")
}

public 
get_user_weapon2id ) { 
    new 
szWeapon20 ]; 
    
get_weaponnameget_user_weaponid ), szWeaponcharsmaxszWeapon ) ); 
     
    return 
szWeapon[7]; 

 
public 
show_status(id){
new 
name[32],pid read_data(2)
get_user_name(pid,name,31)
if (
friend[id] == 1){ /* friend */
set_hudmessage(0,0,225,-1.0,0.60,10.013.00.010.014/* blue */
show_hudmessage(id,"Friend: %s - Health: %d | Armor: %d | Weapon: %s",name,
get_user_health(pid),get_user_armor(pid),get_user_weapon2(pid))
}

else {
set_hudmessage(255,0,0,-1.0,0.60,10.013.00.010.014/* red */
show_hudmessage(id,"Enemy: %s",name)
}
}

public 
plugin_init(){
register_plugin("Player Name","0.1","Yuri")
register_event("StatusValue","set_team","be","1=1")
register_event("StatusValue","show_status","be","1=2","2!0")
register_event("StatusValue","hide_status","be","1=1","2=0")

Mr.Noobie 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 18:22.


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