Raised This Month: $ Target: $400
 0% 

Next stupid problem :/


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 11-19-2007 , 14:45   Next stupid problem :/
Reply With Quote #1

Why it doesn't work? :/

Code:
#include <amxmodx> 
 
new const PLUGINNAME[] = "NiuwPlajerSund" 
new const VERSION[] = "0.1" 
new const AUTHOR[] = "Sn!ff3r" 
 
public plugin_init() { 
register_plugin(PLUGINNAME, VERSION, AUTHOR) 
} 
 
public client_authorized(id){ 
client_cmd(id, "spk misc/niuwplajer") 
} 
 
public plugin_precache() 
{ 
precache_sound("misc/niuwplajer.wav") 
}
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-19-2007 , 15:04   Re: Next stupid problem :/
Reply With Quote #2

Try the sound, put in on your cstrike folder, launch cs, then type in console :
spk misc/niuwplajer
ConnorMcLeod is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 11-19-2007 , 15:08   Re: Next stupid problem :/
Reply With Quote #3

Sound is playing... i added some code:

Code:
#include <amxmodx> 
 
new const PLUGINNAME[] = "NiuwPlajerSund" 
new const VERSION[] = "0.1" 
new const AUTHOR[] = "Sn!ff3r" 
 
public plugin_init() { 
register_plugin(PLUGINNAME, VERSION, AUTHOR) 
} 
 
public client_authorized(id){ 
client_cmd(id, "spk misc/niuwplajer")
client_print(id, print_chat, "Welcome") 
} 
 
public plugin_precache() 
{ 
precache_sound("misc/niuwplajer.wav") 
}
And "welcome" also doesnt work :/

EDIT: Sorry... sound is playing while i'm connecting to server. I want to play sound when i joined team...

Last edited by Sn!ff3r; 11-19-2007 at 15:16.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Old 11-19-2007, 15:51
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-19-2007 , 16:22   Re: Next stupid problem :/
Reply With Quote #5

Maybe this?

PHP Code:
#include <amxmodx> 

public plugin_init() { 
    
register_plugin("NiuwPlajerSund" "0.1""Sn!ff3r")
}

public 
plugin_precache() { 
    
precache_sound("misc/niuwplajer.wav")
}

public 
client_putinserver(id) { 
    
set_task(10.0"welcomeUser"id)
}

public 
welcomeUser(id) {
    
client_cmd(id"spk misc/niuwplajer")
    
client_print(idprint_chat"Welcome")

__________________
M249-M4A1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-19-2007 , 17:27   Re: Next stupid problem :/
Reply With Quote #6

In that case it's better to use motd.txt
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 01:13.


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