26.02.2017, 23:31
PHP код:
new Nickname[MAX_PLAYERS + MAX_PLAYER_NAME];
CMD:bantest(playerid, ilanz[])
{
new id, motivo[70];
GetPlayerName(playerid, Nickname[playerid], MAX_PLAYER_NAME);
if(sscanf(ilanz, "ds[70]", id, motivo))
return 1;
if(strfind(Nickname[playerid], "IlanZin", true) != -1 || strfind(Nickname[playerid], "yAlphazin_", true) != -1 || strfind(Nickname[playerid], "IlanZ", true) != -1)
return SendClientMessage(playerid, -1, "Nгo pode banir esses nick");
Ban(playerid);
return 1;
}