AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [REQ]Radar changes (https://forums.alliedmods.net/showthread.php?t=93521)

035596266 05-30-2009 04:24

[REQ]Radar changes
 
How do I change my logo to the radar ?

PHP Code:

http://forums.alliedmods.net/showthread.php?t=52529&highlight=hud.txt 

The production of this article can use plug-ins ?

Sorry, I am from Taiwan

035596266 05-31-2009 12:11

Re: [REQ]Radar changes
 
PHP Code:

#include <amxmodx>
#include <fakemeta>


new iconstatus;

public 
plugin_init() {
    
register_plugin("Status Icon","0.1","SAMURAI");
    
    
register_forward(FM_PlayerPreThink,"fw_prethink");
    
iconstatus get_user_msgid("StatusIcon");
    
}

public 
fw_prethink(id)
{
    if(!(
pev(id,pev_button) & FL_ONGROUND))
    {    
        
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
        
write_byte(0); // status (0=hide, 1=show, 2=flash)
        
write_string("radar"); // sprite name
        
write_byte(0); // red
        
write_byte(0); // green
        
write_byte(0); // blue
        
message_end();
    }
    


What remains to be how to fix ?

Hunter-Digital 05-31-2009 12:56

Re: [REQ]Radar changes
 
That code is totally wrong... and it's taken from that tutorial, lewl =)

What do you really want to do ? speak proper english if you want help :}

035596266 05-31-2009 13:08

Re: [REQ]Radar changes
 
I just want to know how to change so that everyone can see the radar, like me

Hunter-Digital 05-31-2009 16:58

Re: [REQ]Radar changes
 
What mod ?

In CS everyone HAS radar... unless they type "hideradar" in console... "drawradar" brings it back.. but that's client side

Explain more what you mean by everyone see the radar like you...

035596266 05-31-2009 23:10

Re: [REQ]Radar changes
 
Is it not produced ?
I know hideradar possible, but I will not

fysiks 05-31-2009 23:22

Re: [REQ]Radar changes
 
Quote:

Originally Posted by 035596266 (Post 839264)
Is it not produced ?
I know hideradar possible, but I will not

What?????????

035596266 06-01-2009 13:05

Re: [REQ]Radar changes
 
PHP Code:

#include <amxmodx>
#include <fakemeta>
 
new radar
 
public plugin_init()
{
       
register_plugin("Radar","0.1","jiunnwoei2629")
       
register_message(get_user_msgid("Radar"), "radar_block")
}
 
public 
radar_block()
{
       
message_begin(MSG_ONEget_user_msgid("Radar"), _id)
       
write_string("radar")
       
write_byte(0)
       
write_byte(0)
       
write_byte(0)
       
message_end()
       return 
PLUGIN_HANDLED


This is correct
Please help correct mistakes

I refer to this
PHP Code:

http://wiki.amxmodx.org/index.php/Half-Life_1_Game_Events#Crosshair 



All times are GMT -4. The time now is 13:48.

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