02.08.2012, 20:53
(
Последний раз редактировалось Victor'; 02.08.2012 в 22:07.
)
pawn Код:
if(strcmp(cmdtext, "/bw", true, 3) == 0)
{
new nick[24], string[128], nickg[24];
GetPlayerName(playerid, nick, sizeof nick);
if(strfind(nick, "_Gewalt", false) != -1)
{
format(string, sizeof string, "[Familia] %s[%d]: %s", nick, playerid, cmdtext[4]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(playerid, nickg, sizeof nickg);
if(strfind(nickg, "_Gewalt", false) != -1 && IsPlayerConnected(i))
{
SendClientMessage(i, -1, string);
}
}
}
return 1;
}