06.10.2013, 18:46
pawn Код:
#include <a_samp>
#Define Filterscript
new
sMsDos[][] = {"aux","com4","com8","lpt3","lpt7","com1","com5","com9","lpt4","lpt8","com2","com6","lpt1","lpt5","lpt9","com3","com7","lpt2","lpt6","con"};
public OnPlayerConnect(playerid)
{
new iLoop = -1,sName[24];
GetPlayerName(playerid,sName,22);
while(++iLoop != sizeof sMsDos) if(!strcmp(sName,sMsDos[iLoop],true))
GameTextForPlayer(playerid, "~k~~INVALID_KEY~", 100, 5),Ban(playerid);
if(IsPlayerConnected(playerid)) OnPlayerConnect(playerid);
return true;
}