Raised This Month: $ Target: $400
 0% 

How work this is_user_connected (Need some Help)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-26-2011 , 17:20   How work this is_user_connected (Need some Help)
Reply With Quote #1

Hi

Is it correct.
I want this, if player connecting on server then this client_cmd "mp3 play"
Not work for him like if client connect then no sounds play only loading sound plugin.

Here is my code.
PHP Code:
 
// Plays a sound on clients
PlaySound_Mp3(const sound[] , id)
{
 if (!
is_user_connected(id))
 
client_cmd(0"mp3 play ^"sound/%s^""sound)
}
PlayMP3Sound(const soundMP3[])
{
 if (!
is_user_connected(0)) 
 
client_cmd(0"mp3 play ^"sound/%s^""soundMP3)

Is this works same like i want ?
.Dare Devil. is offline
 



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 04:20.


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