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

gwm


Post New Thread Reply   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-07-2012 , 11:40   Re: gwm
Reply With Quote #61

Why can't you upload it to your post?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
talha14
Member
Join Date: Aug 2012
Location: London
Old 10-08-2012 , 09:46   Re: gwm
Reply With Quote #62

ok, guyz uploaded it.
Now can u please put this in the script,its the ghost model so when i activate the gwm mode all the players in my team have to be in this model cothes. thnks
Attached Files
File Type: zip dpt_ghost2.zip (740.4 KB, 64 views)
talha14 is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 10-08-2012 , 10:18   Re: gwm
Reply With Quote #63

Quote:
Originally Posted by talha14 View Post
ok, guyz uploaded it.
Now can u please put this in the script,its the ghost model so when i activate the gwm mode all the players in my team have to be in this model cothes. thnks
Here:
PHP Code:
#include <amxmodx> 
#include <cstrike>    
#include <fun>   

#define BIG_HUD 

#if defined BIG_HUD 
#include <dhudmessage>  
#endif 

new g_max_clients 
new CsTeams:g_iActivatorTeam 

new bool:g_bGhostRunning false 

#define ADMIN        ADMIN_BAN  
#define SILVER        ADMIN_LEVEL_G  
#define GOLDEN        ADMIN_LEVEL_H  


// DO NOT EDIT THIS  
#define FINAL        (ADMIN|SILVER|GOLDEN)

new const gsz_MODELNAME[] = "dpt_ghost2"

public plugin_precache()
{
    new 
szFilePath[100]
    
formatex(szFilePathcharsmax(szFilePath), "models/player/%s/%s.mdl")
    
precache_model(szFilePath)
}

public 
plugin_init()    
{    
    
register_plugin"Ghost WaLKING MOD""0.0.5""Freestyle/pokemonmaster" );    
    
register_clcmd"say /me""gwm");    
    
register_logevent("event_round_end",2,"1=Round_End")  
    
    
g_max_clients get_maxplayers()  
}  

public 
event_round_end()   

    if(
g_bGhostRunning
    { 
        for(new 
1<= g_max_clientsi++) 
        { 
            if(
is_user_connected(i))
                if(
cs_get_user_team(i) == g_iActivatorTeam)
                {
                    
cs_reset_user_model(i)
                    
set_user_noclip(i0)
                } 
        }
        
g_bGhostRunning false
    
}
}   

public 
gwm(id)
{    
    new 
iFlags get_user_flags(id)  
    
#if defined BIG_HUD 
    
set_dhudmessage01600, -1.00.2526.03.00.11.5 ); 
    
#else 
    
set_hudmessage01600, -1.00.2526.03.00.11.5 ); 
    
#endif 
    
    
if(!(iFlags & FINAL))  
    {  
        
#if defined BIG_HUD 
        
show_dhudmessage(id "You don't have acess to this command."); 
        
#else 
        
show_hudmessage(id "You don't have acess to this command."); 
        
#endif 
        
return PLUGIN_HANDLED  
    
}  
    
    
g_iActivatorTeam cs_get_user_team(id
    
    if( 
g_iActivatorTeam == CS_TEAM_SPECTATOR || g_iActivatorTeam == CS_TEAM_UNASSIGNED 
    {  
        
#if defined BIG_HUD 
        
show_dhudmessage(id "You must join to a Team."); 
        
#else 
        
show_hudmessage(id "You must join to a Team."); 
        
#endif 
        
return PLUGIN_HANDLED  
    

    
    
ghost_features() 
    
    new 
szName[32]
    
get_user_name(idszNamecharsmax(szName)) 
    
    
#if defined BIG_HUD 
    
show_dhudmessage(0"%s %s activated Ghost Walking Mode^nAll the %s team will be Ghosts", ( iFlags ADMIN "Admin" : ( iFlags SILVER "Silver Player" "Golden Player" ) ), szName, ( g_iActivatorTeam == CS_TEAM_T "Terrorist" "Counter-Terrorist" ) ) 
    
#else 
    
show_hudmessage(0"%s %s activated Ghost Walking Mode^nAll the %s team will be Ghosts", ( iFlags ADMIN "Admin" : ( iFlags SILVER "Silver Player" "Golden Player" ) ), szName, ( g_iActivatorTeam == CS_TEAM_T "Terrorist" "Counter-Terrorist" ) ) 
    
#endif 
    
    
g_bGhostRunning true 
    
    
return PLUGIN_HANDLED  
}  

ghost_features() 
{    
    for(new 
1g_max_clients 1i++) 
    { 
        if(
is_user_alive(i)) 
        {
            if(
cs_get_user_team) == g_iActivatorTeam)   
            {  
                
strip_user_weapons(i)   
                
give_item(i,"weapon_usp")   
                
give_item(i,"weapon_knife")   
                
cs_set_user_bpammo(iCSW_USP250)   
                
                
set_user_noclip(i1)   
                
cs_set_user_model(igsz_MODELNAME)
                
            } 
            
            else 
                
cs_set_user_money(i160001
        } 
    } 

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 10-12-2012 at 03:56.
pokemonmaster is offline
talha14
Member
Join Date: Aug 2012
Location: London
Old 10-08-2012 , 11:44   Re: gwm
Reply With Quote #64

THNKS, To all the guyz who helped me
talha14 is offline
talha14
Member
Join Date: Aug 2012
Location: London
Old 10-09-2012 , 07:35   Re: gwm
Reply With Quote #65

Sorry Guyz , just one more thing, i will really appreciate the person who helps me in this.
talha14 is offline
talha14
Member
Join Date: Aug 2012
Location: London
Old 10-09-2012 , 07:49   Re: gwm
Reply With Quote #66

can any1 add this too to the script, when i activate the gwm the lights goes dim and also when its start the Piano.wav starts and after the piano ends the ooo0oo.wav starts and stays continuous untill the round ends. Also when some ghost gets killed the ghost kill.wav starts but only for some seconds
Attached Files
File Type: zip ooo0ooo.zip (265.9 KB, 45 views)
talha14 is offline
talha14
Member
Join Date: Aug 2012
Location: London
Old 10-09-2012 , 07:49   Re: gwm
Reply With Quote #67

open the zip u will find the .wav files. THNKS
talha14 is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 10-09-2012 , 08:03   Re: gwm
Reply With Quote #68

OMG, FOUR POSTS!
Please learn to edit your posts..
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
talha14
Member
Join Date: Aug 2012
Location: London
Old 10-09-2012 , 08:33   Re: gwm
Reply With Quote #69

Sorry , but pls edit the script as i said above. thnks
talha14 is offline
Old 10-10-2012, 08:26
talha14
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
dineshrohra
Junior Member
Join Date: Aug 2012
Location: Dubai, United Arab Emira
Old 10-11-2012 , 02:54   Re: gwm
Reply With Quote #70

Quote:
Originally Posted by pokemonmaster View Post
Here:
PHP Code:
#include <amxmodx> 
#include <cstrike>    
#include <fun>   

#define BIG_HUD 

#if defined BIG_HUD 
#include <dhudmessage>  
#endif 

new g_max_clients 
new CsTeams:g_iActivatorTeam 

new bool:g_bGhostRunning false 

#define ADMIN        ADMIN_BAN  
#define SILVER        ADMIN_LEVEL_G  
#define GOLDEN        ADMIN_LEVEL_H  


// DO NOT EDIT THIS  
#define FINAL        (ADMIN|SILVER|GOLDEN)

new const gsz_MODELNAME[] = "dpt_ghost2"

public plugin_precache()
{
    new 
szFilePath[100]
    
formatex(szFilePathcharsmax(szFilePath), "models/player/%s/%s.mdl")
    
precache_model(szFilePath)
}

public 
plugin_init()    
{    
    
register_plugin"Ghost WaLKING MOD""0.0.5""Freestyle/pokemonmaster" );    
    
register_clcmd"say /me""gwm");    
    
register_logevent("event_round_end",2,"1=Round_End")  
    
    
g_max_clients get_maxplayers()  
}  

public 
event_round_end()   

    if(
g_bGhostRunning
    { 
        for(new 
1<= g_max_clientsi++) 
        { 
            if(
is_user_alive(i))
                if(
cs_get_user_team(i) == g_iActivatorTeam)
                {
                    
cs_reset_user_model(i)
                    
set_user_noclip(i0)
                } 
        }
        
g_bGhostRunning false
    
}
}   

public 
gwm(id)
{    
    new 
iFlags get_user_flags(id)  
    
#if defined BIG_HUD 
    
set_dhudmessage01600, -1.00.2526.03.00.11.5 ); 
    
#else 
    
set_hudmessage01600, -1.00.2526.03.00.11.5 ); 
    
#endif 
    
    
if(!(iFlags & FINAL))  
    {  
        
#if defined BIG_HUD 
        
show_dhudmessage(id "You don't have acess to this command."); 
        
#else 
        
show_hudmessage(id "You don't have acess to this command."); 
        
#endif 
        
return PLUGIN_HANDLED  
    
}  
    
    
g_iActivatorTeam cs_get_user_team(id
    
    if( 
g_iActivatorTeam == CS_TEAM_SPECTATOR || g_iActivatorTeam == CS_TEAM_UNASSIGNED 
    {  
        
#if defined BIG_HUD 
        
show_dhudmessage(id "You must join to a Team."); 
        
#else 
        
show_hudmessage(id "You must join to a Team."); 
        
#endif 
        
return PLUGIN_HANDLED  
    

    
    
ghost_features() 
    
    new 
szName[32]
    
get_user_name(idszNamecharsmax(szName)) 
    
    
#if defined BIG_HUD 
    
show_dhudmessage(0"%s %s activated Ghost Walking Mode^nAll the %s team will be Ghosts", ( iFlags ADMIN "Admin" : ( iFlags SILVER "Silver Player" "Golden Player" ) ), szName, ( g_iActivatorTeam == CS_TEAM_T "Terrorist" "Counter-Terrorist" ) ) 
    
#else 
    
show_hudmessage(0"%s %s activated Ghost Walking Mode^nAll the %s team will be Ghosts", ( iFlags ADMIN "Admin" : ( iFlags SILVER "Silver Player" "Golden Player" ) ), szName, ( g_iActivatorTeam == CS_TEAM_T "Terrorist" "Counter-Terrorist" ) ) 
    
#endif 
    
    
g_bGhostRunning true 
    
    
return PLUGIN_HANDLED  
}  

ghost_features() 
{    
    for(new 
1g_max_clients 1i++) 
    { 
        if(
is_user_alive(i)) 
        {
            if(
cs_get_user_team) == g_iActivatorTeam)   
            {  
                
strip_user_weapons(i)   
                
give_item(i,"weapon_usp")   
                
give_item(i,"weapon_knife")   
                
cs_set_user_bpammo(iCSW_USP250)   
                
                
set_user_noclip(i1)   
                
cs_set_user_model(igsz_MODELNAME)
                
            } 
            
            else 
                
cs_set_user_money(i160001
        } 
    } 

Pokemonmaster, Will Your Code Work In fy_ Maps ? Because The Ghost Should Only Use USP With 36 Bullets & Carry A Knife Along. The Ghost Model Is Perfect.
Also, Can You Add Support For Silver Players [Flag - s (ADMIN_LEVEL_G)] As You Did For Godlen Player In The Script ?
Would Be Great If You Add The Sounds As Talha Suggested

Would Be Waiting For Your Reply
dineshrohra is offline
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 05:27.


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