28.11.2012, 19:28
Код:
Include <a_samp>
Код:
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; }