Hi.
Inputtext alá, a megfelelõ helyre:
[pawn]new playername[MAX_PLAYER_NAME];
new string[128];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, playername, MAX_PLAYER_NAME);
new namelen = strlen(playername);
for(new pos=0; pos <= namelen; pos++)
{
if(strfind(playername,inputtext,true) == pos)
{
format(string,sizeof(string),\"%s | ID: %d\",PlayerName(i),i);
SendClientMessage(playerid,0xFFFFFFFF,string);
}
}
}
}[/pawn]
Ezt ne felejtsd a script aljára rakni:
[pawn]stock PlayerName(playerid)
{
new name2[255];
GetPlayerName(playerid, name2, 255);
return name2;
}[/pawn]