Searching for part of name
#1

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 ..
Reply
#2

You can use this

Strfind
Reply
#3

any Tut. for that ??
Reply
#4

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;
}
Reply
#5

THX ALOT !!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)