Raised This Month: $ Target: $400
 0% 

Players Array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 09-07-2012 , 11:01   Players Array
Reply With Quote #1

Not sure what the topic name should be ...

anyways

PHP Code:
#include <amxmodx>

#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "EpicMonkey"

new g_Test[32];

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /test""Test")
    
register_clcmd("say /check""Check")
}

public 
Test(id)
{
    new 
pnum;
    
get_players(g_Testpnum"ae""CT")
}

public 
Check(id)
{
    if(
g_Test[id])
    {
        
client_print(idprint_chat"[AMXX] You are a Test Player")
    }
    else
    {
        
client_print(idprint_chat"[AMXX] You are not a Test Player")
    }

returns You are not a test player when am in CT
No idea ...
EpicMonkey 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 08:16.


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