AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Chat only for user (https://forums.alliedmods.net/showthread.php?t=155329)

extreem 04-20-2011 13:10

Chat only for user
 
HI, can you help me with makin plugin wich will show chat message only for player.
Surch as:
PHP Code:

public client_authorized(id)
{
        
set_task(60.0"connectzprava"id__"b")
}
public 
connectzprava(id)
{
    
ColorChat(idNORMAL"^1[XStrike] Napis ^4/vip ^1pro zobrazeni informaci o VIP")


That chat message can see all players. How make it only for user ? For VIPS will be hiden

Nyuszy 04-20-2011 13:48

Re: Chat only for user
 
PHP Code:

public connectzprava(id)
{
     if(!
is_user_admin(id))
          
ColorChat(idNORMAL"^1[XStrike] Napis ^4/vip ^1pro zobrazeni informaci o VIP")



extreem 04-20-2011 14:01

Re: Chat only for user
 
Thanx Nyuszy :)


All times are GMT -4. The time now is 20:09.

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