Raised This Month: $ Target: $400
 0% 

VIP Tag & Green Chat Toggles


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zEEDu
Junior Member
Join Date: Jan 2013
Location: Vaasa, Finland
Old 01-21-2013 , 04:30   VIP Tag & Green Chat Toggles
Reply With Quote #1

Can someone make an example how to put on and off a VIP tag in scoreboard/chat and greenchat for a player in a toggle? ( the functions )

PHP Code:
ToggleTagMenu iPlayer )
{    
        if ( 
ScoreTagiPlayer ] )
        {
                
ScoreTagiPlayer ] = false
                CmdVIPMenu
(iPlayer)
                
ColorChat iPlayerGREY"%s Scoreboard 'VIP' Tag ^1has been Disabled^3!"prefix )
        }
        else {
                
ScoreTagiPlayer ] = true
                CmdVIPMenu
(iPlayer)
                
ColorChat iPlayerGREY"%s Scoreboard 'VIP' Tag ^1has been^3 Enabled!"prefix )
        }
        return 
PLUGIN_HANDLED
}

 
ToggleChatMenu iPlayer )
{
        if ( 
GreenChatiPlayer ] )
        {
                
GreenChatiPlayer ] = false
                CmdVIPMenu
(iPlayer)
                
ColorChat iPlayerGREY"%s Green Chat ^1has been Disabled^3!"prefix )
        }
        else
        {        
                
GreenChatiPlayer ] = true
                CmdVIPMenu
(iPlayer)
                
ColorChat iPlayerGREY"%s Green Chat ^1has been^3 Enabled!"prefix )
        }
        return 
PLUGIN_HANDLED

Thanks in advance!
__________________
PM for Private Work!

Scandinavian Gaming Association

Last edited by zEEDu; 01-21-2013 at 04:31. Reason: Missed something :p
zEEDu 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 13:27.


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