24.05.2011, 00:50
(
Последний раз редактировалось admantis; 24.05.2011 в 02:12.
)
I made this function:
pawn Код:
stock SetNPCTag() // by: Admantis
{
new sz_Name[24], sz_NewName[31];
sz_NewName = "[BOT]";
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (!IsPlayerNPC(i))
continue;
GetPlayerName(i, sz_Name, 24);
strins(sz_NewName, sz_Name, 25);
SetPlayerName(i, sz_NewName);
}
return sz_NewName; // This function returns the name with [BOT] tag
}