/find
#1

Hi!

Can some one help me with this?

I want that player will type /find [playername-not playerid] it will show him players with that words in name in dialog

>Like this but the code done work


PHP код:
CMD:find(playerid,params[])
{
new 
name;
new 
count 0;
if(
sscanf(params"u"name)) return SendClientMessage(playerid0xAFAFAFAA"USAGE: /Find [PlayerName]");
foreach (new 
Player)
{
if(
IsPlayerConnected(i))
{
GetPlayerName(i,namesizeof(name));
new 
Find[1000];
format(Findsizeof(Find), "{FFFFFF}%s(ID:%d)"namei);
ShowPlayerDialog(playerid,9001,DIALOG_STYLE_LIST,"Find",Find,"Ok","");
}
}
return 
1;

Reply


Messages In This Thread
/find - by kalanerik99 - 28.11.2013, 18:44
Re: /find - by Konstantinos - 28.11.2013, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)