SA-MP Forums Archive
Searching for part of name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Searching for part of name (/showthread.php?tid=424394)



Searching for part of name - hossa - 21.03.2013

hello..
i need help to do like when player connect
if there is a part of player name got tag like [BLAH] or full player name like "TEST12345"
it shows the player a dialogue for like login .. but i don't know the code and i searched for it but nothing >.>
Please help ..


Re: Searching for part of name - [CG]Milito - 22.03.2013

You can use this

Strfind


Re: Searching for part of name - hossa - 22.03.2013

any Tut. for that ??


Re: Searching for part of name - |MadDog| - 22.03.2013

put on: OnPlayerRequestClass

Код:
new name[MAX_PLAYER_NAME]
GetPlayerName(playerid, name, sizeof(name));
if(strfind(name, "do something here", true) == -1)
{
   //do something here
return 1;
}



Re: Searching for part of name - hossa - 22.03.2013

THX ALOT !!!!