Raised This Month: $ Target: $400
 0% 

Need help with these


Post New Thread Reply   
 
Thread Tools Display Modes
Samurai [/]
Member
Join Date: Sep 2006
Old 04-19-2007 , 16:51   Re: Need help with these
Reply With Quote #11

Quote:
Originally Posted by Nican View Post
This compiles:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
 
public SilentFootTsteps()
{
    for(new 
i=0;i<=get_maxplayers();i++)
    if(
cs_get_user_team(i) == CS_TEAM_T)
        
set_user_footsteps (i0)
 

compiles but doesent affect to footsteps..
__________________
Samurai [/] is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-19-2007 , 17:25   Re: Need help with these
Reply With Quote #12

Where are you calling SilentFootTsteps()?
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Samurai [/]
Member
Join Date: Sep 2006
Old 04-20-2007 , 05:39   Re: Need help with these
Reply With Quote #13

Quote:
Originally Posted by Nican View Post
This compiles:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
 
public SilentFootTsteps()
{
    for(new 
i=0;i<=get_maxplayers();i++)
    if(
cs_get_user_team(i) == CS_TEAM_T)
        
set_user_footsteps (i0)
 

i got this script.. (doesent affect to footsteps)

Quote:
Originally Posted by teame06 View Post
Where are you calling SilentFootTsteps()?
What is the way to do it?
__________________
Samurai [/] is offline
Samurai [/]
Member
Join Date: Sep 2006
Old 04-20-2007 , 07:18   Re: Need help with these
Reply With Quote #14

Quote:
Originally Posted by scrtxxcaz View Post
try....

Code:
public client_putinserver(id)
{
new admin = is_user_admin(id)
if(admin)
{
       new name[18],players[32],num 
       get_user_name(admin, name, 17)
       get_players(players,num)
       set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 12.0)
       for(new g = 0;g < num;g++)
       {
               client_cmd (players[g], "spk %s", g_sound1)
               show_hudmessage(players[g], "Admin %s connected", name)
       }
      //all players here sound and see message
}  
How with disconnect? and:
PHP Code:
if (!(get_user_flags(id)&ADMIN_RESERVATION)) 

I want different hud_message for that case
__________________
Samurai [/] is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-20-2007 , 11:01   Re: Need help with these
Reply With Quote #15

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define Plugin "Silent Footsteps"
#define Version "1.0"
#define Author "Doombringer"

public plugin_init()
{
	register_plugin(Plugin, Version, Author)
	register_logevent("round_start", 2, "1=Round_Start") 
}

public round_start()
{
	new players[32], num
	get_players(players, num)
	
	new player
	for(new i = 0; i < num; i++)
	{
		player = players[i]
		
		if(cs_get_user_team(player) == CS_TEAM_T)
			set_user_footsteps(player, 1)
	}
}
Deviance is offline
Old 04-21-2007, 01:32
scrtxxcaz
This message has been deleted by scrtxxcaz.
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 04-21-2007 , 01:33   Re: Need help with these
Reply With Quote #16

public client_disconnect(id)
{
new admin = is_user_admin(id)
if(admin)
{

new name[18],players[32],num
get_user_name(admin, name, 17)

get_players(players,num)
set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 12.0)
for(new g = 0;g < num;g++)
{
client_cmd (players[g], "spk %s", g_sound1) // edit to your liking
show_hudmessage(players[g], "Admin %s diconnected", name) //edit to your liking

}
//all players here sound and see message
if(!get_user_flags(id) & ADMIN_RESERVATION))
{
//do somin here
}
}

__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress

Last edited by scrtxxcaz; 04-21-2007 at 01:44.
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 04-21-2007 , 01:38   Re: Need help with these
Reply With Quote #17

for some reason it wont let me tab in ....
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Samurai [/]
Member
Join Date: Sep 2006
Old 04-22-2007 , 06:01   Re: Need help with these
Reply With Quote #18

Some reason ur script bugs i dont know why.
(When admin connects before other admin it takes the name before connected admin)
__________________
Samurai [/] 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 06:34.


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