Raised This Month: $ Target: $400
 0% 

new SOMETHING[##]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 06-23-2009 , 21:25   new SOMETHING[##]
Reply With Quote #1

PHP Code:
new szarg1[33], szalpha[8], szarg3[8], bool:mode
    read_argv
(1,szarg1,32)
    
read_argv(2,szalpha,7)
    
read_argv(3,szarg3,7)
    new 
ialpha str_to_num(szalpha)
    if(
equal(szarg3,"on"))
        
mode true
        
        
new pid cmd_target(id,szarg1,2)
        if(
pid 0) {
            
hasinvis[pid] = mode
            
if(mode) {
                        
client_print(pid,print_chat,"-[EVIL]- %s is now cloaked ",name)
                        
set_user_rendering(pid,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,ialpha)
            }
            else {
                       
client_print(pid,print_chat,"-[EVIL]- %s is no longer  ",name)
                       
set_user_rendering(pid,kRenderFxNone,0,0,0,kRenderNormal,ialpha)
            }
        }
    } 
I dont fully understand new (brand new to scripting)

new (creates something) arg (it is called upon in the command?)[] (length?) is this right?
__________________
+|- KARMA Respectively

HLM is offline
 


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 15:38.


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