Raised This Month: $ Target: $400
 0% 

Question about register_plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-08-2018 , 15:35   Question about register_plugin
Reply With Quote #1

Hello friends,
I want to know what is different about these codes and also which one is the best I should use.
Thanks for helping.

1st
PHP Code:
public plugin_init() {
    
register_plugin("Plugin""1.0""PurposeLess");

2nd
PHP Code:
#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "PurposeLess" 
3rd
PHP Code:
new const PLUGIN[] = "Plugin";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[] = "PurposeLess"
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx 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 19:25.


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