Raised This Month: $51 Target: $400
 12% 

invis T , no footstep + no center name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
juzforshow
New Member
Join Date: Oct 2010
Old 10-14-2010 , 12:22   invis T , no footstep + no center name
Reply With Quote #1

Hello, can i actually request an idea that I have and could any kind souls help me create this

Gameplay is first of all original, meaning, T are supposed to be "ghosts" and they have to plant C4 and protect the C4 from the CTs

or without planting, kill all the CTs in the map vice versa to the CTs

Ts have no guns only knife

CT cant see the T's name when his crosshair is aiming at a T
thus, CT have to work together and stick to win the game , likewise the Ts

Furthermore, if possible, there could be unlock features that players could earn by reaching a certain frag count (:

Thanks Alot To Anybody Who Could Help Me
juzforshow is offline
Welgericht
Member
Join Date: Jul 2010
Old 10-14-2010 , 13:47   Re: invis T , no footstep + no center name
Reply With Quote #2

Haven't tested it, but compiles fine.
PHP Code:

#include < amxmodx >
#include < amxmisc >

#include < fakemeta_util >
#include < fakemeta >
#include < cstrike >
#include < fun >


#define PLUGIN  "[MOD] ghost"
#define VERSION "1.0"
#define AUTHOR  "Doomsday"
// status: TESTED

#define HUD_HIDE_MONEY (1<<5)

public plugin_init()
{
       
register_pluginPLUGINVERSIONAUTHOR )
 
       
register_event("ResetHUD","event_reset_hud","be")
       
register_event("WeapPickup""event_weap_pickup""be""1!29")
}

public 
event_reset_hud(id)
{    
    
set_task(0.4,"check",id);
}

public 
check(id)
{

new 
CsTeams:userTeam cs_get_user_team(id)

   
        if (
userTeam == CS_TEAM_T)
        {

        
strip_user_weapons(id);
        
give_item(id"weapon_knife");
        
set_user_footsteps(id0);

        
message_begin(MSG_ONE,get_user_msgid("StatusIcon"),{0,0,0},id);
    
write_byte(1);
    
write_string("dmg_bio");
    
write_byte(255);
    
write_byte(0);
    
write_byte(0);
    
message_end();
        }
}

public 
event_weap_pickup(id)
{
        new 
CsTeams:userTeam cs_get_user_team(id)
 
        if (
userTeam == CS_TEAM_T)
        {
    
set_task(0.1"RemovePickedWeapon"id)
        }

}

public 
RemovePickedWeapon(id)
{

    if(
is_user_alive(id)) 
    {
        new 
wpnList[32]     
        new 
number
        get_user_weapons
(id,wpnList,number
        for (new 
0;number ;i++) { 
            if (
wpnList[i] != CSW_KNIFE
                if(
wpnList[i] != CSW_HEGRENADE
                    if(
wpnList[i] != CSW_C4
                        
fm_strip_user_gun(idwpnList[i])
        }
        
    }
    return 
PLUGIN_HANDLED


public 
client_PreThink(id)
{
        new 
CsTeams:userTeam cs_get_user_team(id)
 
        if (
userTeam == CS_TEAM_T)
        {
        
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha0);

    
message_begin(MSG_ONEget_user_msgid("HideWeapon"), _id)
    
write_byte(HUD_HIDE_MONEY)
    
message_end()

    
set_msg_arg_int(1ARG_BYTEget_msg_arg_int(1) | HUD_HIDE_MONEY)
        }

UPD.
I have Tested it, works fine

Last edited by Welgericht; 10-14-2010 at 14:19.
Welgericht is offline
juzforshow
New Member
Join Date: Oct 2010
Old 10-14-2010 , 22:01   Re: invis T , no footstep + no center name
Reply With Quote #3

thnx i will try it later (:

edit : seem to have some kind of error thing
Quote:
L 10/15/2010 - 11:09:29: Start of error session.
L 10/15/2010 - 11:09:29: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20101015.log")
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
L 10/15/2010 - 11:09:29: [AMXX] Run time error 10 (plugin "ghostmode.amxx") (native "get_msg_arg_int") - debug not enabled!
L 10/15/2010 - 11:09:29: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 10/15/2010 - 11:09:29: Invalid message argument 1
edit2: anyway the C4 gets removed too. i need the C4
also, if possible can add unlock features after some kill counts like
add center player name for the CT that has death over 10
give T lifesteal attack if kill>20
give CT speed boost if kill >20 etc.

edit3: when player chgs team, the invis doesnt go away , there is still footsteps + playername

Last edited by juzforshow; 10-15-2010 at 02:17.
juzforshow is offline
Welgericht
Member
Join Date: Jul 2010
Old 10-15-2010 , 08:01   Re: invis T , no footstep + no center name
Reply With Quote #4

Add: c4 is not removed now
PHP Code:


#include < amxmodx >
#include < amxmisc >

#include < fakemeta_util >
#include < fakemeta >
#include < cstrike >
#include < fun >


#define PLUGIN  "[MOD] ghost"
#define VERSION "1.0"
#define AUTHOR  "Doomsday"
// status: TESTED

#define HUD_HIDE_MONEY (1<<5)

public plugin_init()
{
       
register_pluginPLUGINVERSIONAUTHOR )
 
       
register_event("ResetHUD","event_reset_hud","be")
       
register_event("WeapPickup""event_weap_pickup""be""1!29")
}

public 
event_reset_hud(id)
{    
    
set_task(0.4,"check",id);
    
set_task(0.5,"RemovePickedWeapon",id);
}

public 
check(id)
{

new 
CsTeams:userTeam cs_get_user_team(id)

   
        if (
userTeam == CS_TEAM_T)
        {

        
strip_user_weapons(id);
        
give_item(id"weapon_knife");
        
set_user_footsteps(id0);

        
message_begin(MSG_ONE,get_user_msgid("StatusIcon"),{0,0,0},id);
    
write_byte(1);
    
write_string("dmg_bio");
    
write_byte(255);
    
write_byte(0);
    
write_byte(0);
    
message_end();
        }
}

public 
event_weap_pickup(id)
{
        new 
CsTeams:userTeam cs_get_user_team(id)
 
        if (
userTeam == CS_TEAM_T)
        {
    
set_task(0.1"RemovePickedWeapon"id)
        }

}

public 
RemovePickedWeapon(id)
{

    if(
is_user_alive(id)) 
    {
        new 
wpnList[32]     
        new 
number
        get_user_weapons
(id,wpnList,number
        for (new 
0;number ;i++) { 
            if (
wpnList[i] != CSW_KNIFE
                if(
wpnList[i] != CSW_HEGRENADE
                    if(
wpnList[i] != CSW_C4
                        
fm_strip_user_gun(idwpnList[i])
        }
        
    }
    return 
PLUGIN_HANDLED


public 
client_PreThink(id)
{
        new 
CsTeams:userTeam cs_get_user_team(id)
 
        if (
userTeam == CS_TEAM_T)
        {
        
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha0);

    
message_begin(MSG_ONEget_user_msgid("HideWeapon"), _id)
    
write_byte(HUD_HIDE_MONEY)
    
message_end()

    
set_msg_arg_int(1ARG_BYTEget_msg_arg_int(1) | HUD_HIDE_MONEY)
        }

Welgericht is offline
Bliezejs
New Member
Join Date: Jul 2011
Old 07-15-2011 , 02:44   Re: invis T , no footstep + no center name
Reply With Quote #5

How do i use this PHP Code ?
Bliezejs is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-15-2011 , 05:45   Re: invis T , no footstep + no center name
Reply With Quote #6

Quote:
Originally Posted by Bliezejs View Post
How do i use this PHP Code ?
Copy it here
and press compile.
Then put the .amxx file in amxmodx/plugins and add the name to amxmodx/configs/plugins.ini
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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 03:12.


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