Parse out clan name
Hello
How can I check if a player is a member of the |sun| clan? for exampel I want to take this list and only get a match on the first 2 names |sun|lala |sun| lala |gas|ala |lps*|la Code:
if (clan is "|sun|") { |
Re: Parse out clan name
Try this :
Code:
|
Re: Parse out clan name
Quote:
You could've looked in my Clan Tryout System, or a host of other plugins. But the code is so easy, I'll just post it here (this is adapting off what connorr originally posted): Code:
You could also make it read from a file full of clan names, just as a suggestion for multiple clan tags. |
Re: Parse out clan name
Oh i was thinking that equali was checking from name[0] to name[sizeof g_tag], in that case 5.
Please explain me what's wrong here. Thanks. |
Re: Parse out clan name
Quote:
'nuff said. |
Re: Parse out clan name
1 Attachment(s)
I sorta kinda made this for what you want but just for the OwnageClan (Ownage | ) because of their servers where you connect and you are automatically renamed to have their tag and your keys rebind.
Anyways, just edit to your needs since I don't feel like it. |
Re: Parse out clan name
Thanks for the response but there is one problem.
I failed to say in my first post (sorry) that the name of the players is already in a string. So I have an array whit the nicks and I want to check if the user I am currently working whit is in the clan |sun|. So Code:
nickname[] = |sun|lalala |
Re: Parse out clan name
Quote:
|
| All times are GMT -4. The time now is 16:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.