Tag Lock
#8

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by Norn
Quote:
Originally Posted by [HiC
TheKiller ]
pawn Код:
new Pname[24];
GetPlayerName(playerid, Pname, 24);
if(!strcmp(Pname, "[GSV]", true, 5))
{
//Player has the [GSV] tag.
}
else
{
//Player cant chose it!
}
Strfind would it not be.
Not exactly. I used strcmp for the first 5 characters in the name so it compares that. Strfind would search the whole playername for the [GSV], most clans only use it at the front.
Ah didn't read the whole line just looked at the strcmp bit, my bad
Reply


Messages In This Thread
Tag Lock - by TheNotorius - 28.02.2010, 05:34
Re: Tag Lock - by [HiC]TheKiller - 28.02.2010, 05:36
Re: Tag Lock - by TheNotorius - 28.02.2010, 20:46
Re: Tag Lock - by TheNotorius - 02.03.2010, 01:44
Re: Tag Lock - by Norn - 02.03.2010, 01:55
Re: Tag Lock - by TheNotorius - 02.03.2010, 08:20
Re: Tag Lock - by [HiC]TheKiller - 02.03.2010, 08:27
Re: Tag Lock - by Norn - 02.03.2010, 15:53
Re: Tag Lock - by TheNotorius - 10.03.2010, 04:06

Forum Jump:


Users browsing this thread: 1 Guest(s)