Opet probljem molim vas pogledajte

Započeo hamo, Septembar 20, 2009, 09:10:00 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

kad udem u igru napisem /login pasword on ne reaguje

//OnPlayerCommandText
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if(strcmp(cmd, "/guard", true) == 0 && (IsPlayerAdmin(playerid)))
{
ShowMenuForPlayer(gmenu,playerid);
return 1;
}
	return 1;
}
//OnFilterScriptInit
public OnFilterScriptInit()
{
print("/n---------------------------------------------------------");
print("/n LVRP AntiCheat FS has loading..............");
print("   //\\    //-----");
print("  //  \\  ||         by");
print(" //----\\ ||              Homer");
print("//      \\ \\-----");
print("..............LVRP AntiCheat FS has secessfully loaded!!!");
print("----------------------------------------------------------\n");

SetTimer("wepcheat", 10000, 1);
SetTimer("pingkicker", 5000, 1);
SetTimer("godcheat", 30000, 1);
SetTimer("moneycheat", 20000, 1);
hguard = 0;
gmenu = CreateMenu("H-Guard menu:",1,50,220,200,200);
AddMenuItem(gmenu,0,"On Guard");
AddMenuItem(gmenu,0,"Off Guard");
}
//OnFilterScriptExit
public OnFilterScriptExit()
{
print("\n LVRP AntiCheat FS has shouting down..............\n");
hguard = 0;
	return 1;
}
//======================WEAPONCHEAT=&=HIGHPING=&=GODMOD=&=MONEYCHEAT============
public wepcheat()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
new playername[MAX_PLAYER_NAME], string[256];
GetPlayerName(i, playername, sizeof(playername));
//Minigun
if(GetPlayerWeapon(i) == 38)
if(hguard == 1)
if(IsPlayerConnected(i))
{
format(string, 256, "HomerGUARD:%s (ID:%d) has banned from server. Reason: Weaponcheat(Minigun!)");
SendClientMessageToAll(COLOR_RED, string);
Ban(i);
}
//Detonator
if(GetPlayerWeapon(i) == 40)
if(hguard == 1)
if(IsPlayerConnected(i))
{
format(string, 256, "HomerGUARD:%s (ID:%d) has banned from server. Reason: Weaponcheat(Detonator!)");
SendClientMessageToAll(COLOR_RED, string);
Ban(i);
}
}
return 1;
}
//========================PINGKICKER============================================
public pingkicker()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
new playername[MAX_PLAYER_NAME], string[256];
GetPlayerName(i, playername, sizeof(playername));
//High ping (600!)
if(GetPlayerPing(i) >= 600)
if(hguard == 1)
if(IsPlayerConnected(i))
{
format(string, 256, "HomerGUARD:%s (ID:%d) has kicked from server. Reason: High ping(600+!)");
SendClientMessageToAll(COLOR_RED, string);
Kick(i);
}
}
return 1;
}
//============================GODCHEAT==========================================
public godcheat()
{
new Float:health;
for(new i=0; i < MAX_PLAYERS; i++)
{
new playername[MAX_PLAYER_NAME], string[256];
GetPlayerName(i, playername, sizeof(playername));
//GodMod
if(GetPlayerHealth(i) >= health)
if(hguard == 1)
if(health > 100)
if(IsPlayerConnected(i))
{
format(string, 256, "HomerGUARD:%s (ID:%d) has banned from server. Reason: GODMOD(101+!)");
SendClientMessageToAll(COLOR_RED, string);
Ban(i);
}
}
return 1;
}
//===================MONEYCHEAT=================================================
public moneycheat()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
new playername[MAX_PLAYER_NAME], string[256];
GetPlayerName(i, playername, sizeof(playername));
//MONEYCHEAT
if(GetPlayerMoney(i) >= 9999999999)
if(hguard == 1)
if(IsPlayerConnected(i))
{
format(string, 256, "HomerGUARD:%s (ID:%d) has banned from server. Reason: MoneyCheat(+9999999999!)");
SendClientMessageToAll(COLOR_RED, string);
Ban(i);
}
}
return 1;
}
//OnPlayerConnect
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_GREEN,"On this server is ANTICHEAT by Homer! Have a nice day!");
if(hguard == 1)
{
SendClientMessage(playerid,COLOR_RED,"WARNING!! ANTICHEAT IS NOW ACTIVATED!!!!");
GameTextForPlayer(playerid,"~r~WARNING!! ANTICHEAT IS NOW ACTIVATED!!!!",3000,5);
}
if(hguard == 0)
{
SendClientMessage(playerid,COLOR_RED,"AntiCheat is DISABLED now.");
GameTextForPlayer(playerid,"~g~AntiCheat is disabled now!!!!",3000,5);
}
}

//OnPlayerSelectedMenuRow
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Current = GetPlayerMenu(playerid);
if (Current == gmenu) {
switch(row) {
case 0:
{
new playername[256];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);

SendClientMessage(playerid,COLOR_RED,"HomerGUARD is ACTIVATED now by Admin %s!");
GameTextForAll("~r~H-Guard is activated!!",4000,1);
hguard = 1;
}
case 1:
{
new playername[256];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
		
SendClientMessage(playerid,COLOR_BLUE,"HomerGUARD is DISABLED now by Admin %s!");
GameTextForAll("~g~H-Guard is disabled!!",4000,1);
hguard = 0;
}
}
}
return 1;
}


r4z0r

Zbrisi zadnju il 2 zadnje filterscripte sta si stavljo u server.cfg .. ja sam sad speedometar ubacio i odma nece /login i /register