Raised This Month: $51 Target: $400
 12% 

Block cl_cmd ?? pls :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zaidbt
Senior Member
Join Date: Jun 2014
Location: Morroco
Old 03-28-2015 , 18:31   Block cl_cmd ?? pls :)
Reply With Quote #1

hi
PHP Code:
public cmd_portal2(id)   
{   
  if(
ClassNumber[id] == 4)  
  { 
          return 
PLUGIN_HANDLED  
    
new exOrigin[3]   
       
    
get_user_origin(idexOrigin)   
       
    
client_print(0print_chat"%d started creating portal..."id)   
       
    
set_task(1.0"create_portal2"idexOrigin3
    } 
    else
    {
        return 
PLUGIN_HANDLED
        client_print
(idprint_center"You're not obito , you can't use portals ..")
    }
       

then why all classes Can use this ? pls ?


Edit :RESOLU
__________________
http://steamcommunity.com/profiles/76561198044821965
=========Working On Naruto Mod========

Last edited by Zaidbt; 03-28-2015 at 20:05.
Zaidbt is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 04-01-2015 , 14:48   Re: Block cl_cmd ?? pls :)
Reply With Quote #2

no matter what classnumber is, the function does absolutely nothing
return PLUGIN_HANDLED goes at the end of the function, not the beginning

christ
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever 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 21:17.


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