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

Help in Script


Post New Thread Reply   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-28-2014 , 11:35   Re: Help in Script
Reply With Quote #11

What exactly are you trying to do?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 11-28-2014 , 12:49   Re: Help in Script
Reply With Quote #12

i have added some more things in script and iam getting that error so i posted and u are dleteing i tby sayng same olzz chk the 1st script and the last
tousif is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-28-2014 , 12:55   Re: Help in Script
Reply With Quote #13

Quote:
Originally Posted by YamiKaitou View Post
What exactly are you trying to do?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-28-2014 , 14:01   Re: Help in Script
Reply With Quote #14

PHP Code:
#include <amxmodx>

#define PLUGIN "Tagger"
#define VERSION "1.0"
#define AUTHOR "Gullu Bhai"

new const g_tag[] = "~=NarC^^()~";

new 
g_ig[][] = {
    
"~=NarC^^(S)~",
    
"~=NarC^^(P)~",
    
"~=NarC^^(FuN)~",
    
"~=NarC^^(O)~",
    
"~=NarC^^(C)~"
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}


public 
client_putinserver(client){
    static 
szName[32];
    
get_user_name(client,szName,charsmax(szName)) ;

    if (!
ContainsTag(szName))
    {
        
format(szName,charsmax(szName),"%s %s",g_tag,szName);
        
set_user_info(client,"name",szName);
    }
}  

bool:ContainsTag(const name[])
{
    for (new 
isizeof(g_ig); i++)
    {
        if (
containi(nameg_ig[i]) == 0// Check if tag starts at beginning of name.
            
return true;
    }
    
    return 
false;

__________________

Last edited by hleV; 11-29-2014 at 07:52. Reason: != → ==
hleV is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 11-28-2014 , 23:50   Re: Help in Script
Reply With Quote #15

hleV

This is not Working Its Not tagging player automatcally

Last edited by tousif; 01-11-2016 at 02:37.
tousif is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-29-2014 , 07:52   Re: Help in Script
Reply With Quote #16

Fixed the above code.
__________________
hleV is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 11-29-2014 , 08:11   Re: Help in Script
Reply With Quote #17

its working ty
tousif is offline
Reply


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 16:54.


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