Raised This Month: $ Target: $400
 0% 

[SOLVED] Double Say Command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 10-27-2013 , 07:12   [SOLVED] Double Say Command
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /light","OpenTheLight")
}
public 
OpenTheLight(id) {
    if(
get_user_team(id) == 2) {
        
set_pev(id,pev_effects,EF_BRIGHTLIGHT)
        
client_print(idprint_chat,"[Light]: Light ON")
    } else if(
get_user_team(id) == 2) {
        
set_pev(idpev_effectspev(idpev_effects) &~ EF_BRIGHTLIGHT)
        
client_print(idprint_chat,"[Light]: Light OFF")
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 
i want to double command ON/OFF

ex:

CT player in the game write say /light open the light again write say /light shut the light.

sorry for my very bad english
wTf. 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 23:20.


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