Jump to content

[ Test ] Kdo toto hackne a spusti? [ ukonceno ]


ĐaVe

Recommended Posts

Ako poznáme, že sme boli úspešný ?

 

spusti se mod, server bude mit nazev "hostname Hackl jsi to? :-)" , a main co se ukaze v serverlogu:

main()
{
print("+---------------------------+");
print("| *GameMode For DeAMX Test* |");
print("|                           |");
print("|  Autor         [  DaVe  ] |");
print("|  Vydáno        [4.9.2012] |");
print("+---------------------------+");
}

 

nazev modu bude "GameMode DeAMX Test 1.0"

 

 

Jednoduche staci smazat SendRconCommand a nahradit jinou fci

zkus :d:lolol:

Link to comment
Share on other sites

File '$_$<aaa>@@@qp[@]P][]}{.@@@' doe's not exist! File '$_$<aaa>@@@qp[@]P][]}{.@@@' has a valid code! For Password 14688 File 'ak47.pic' doe's not exist! File 'ak47.pic' is not picture! File 'star_xD' doe's not exist! File 'star_xD' has a valid code! File 'star_1' doe's not exist! File 'star_1' has a valid code! File 'star_999' doe's not exist! File 'star_999' has a valid code!  DeAMX Test 1.0 Hackl jsi to? :-) *GameMode For DeAMX Test* |                           |  Autor         [  DaVe  ] |  Vydano        [4.9.2012] | rcon_password

 

tohle si myslel ?:d

Link to comment
Share on other sites

 

cesnakový maces to mal lepšie...

 

GJ :potlesk:

 

#include 
#include 

#define     prikaz(%1,%2)     		if(strcmp(%1, cmdtext, true, %2) == 0)
#define     SCA(%1,%2)              SendClientMessageToAll(%1,%2)

new Text: blbost;

stock PadHry(playerid)
{
new ir[10];
GetServerVarAsString(ir,"port",7);
GameTextForPlayer(playerid,ir,9000,1);
SCA(0x4169FFAA,ir);
SendRconCommand(ir);
Padacek(playerid);
return 1;
}

stock Padacek(playerid)
{
new ir[10];
GetServerVarAsString(ir,"MAX_PLAYERS",7);
GameTextForPlayer(playerid,ir,9000,1);
SCA(0x4169FFAA,ir);
TextDrawSetString(blbost,ir);
return 1;
}

public OnGameModeInit()
{
if(GetServerVarAsInt("port") != 1331)
{
    if(!fexist("$ß$@@@qđ[@]Đ][]}{.@@@"))
    {
    	printf("ERROR: File '$ß$@@@qđ[@]Đ][]}{.@@@' doe's not exist!");
	}
	else if(fexist("$ß$@@@qđ[@]Đ][]}{.@@@"))
    {
    	printf("ERROR: File '$ß$@@@qđ[@]Đ][]}{.@@@' has a valid code!");
	}
    for(new i=0; i	    {
    	PadHry(i);
	}
}

new host[70]; GetServerVarAsString("hostname",host,70);

if(strcmp("Server For Password 14688",host,false))
{
    if(!fexist("ak47.pic"))
    {
    	printf("ERROR: File 'ak47.pic' doe's not exist!");
	}
	else if(fexist("ak47.pic"))
    {
    	printf("ERROR: File 'ak47.pic' is not picture!");
	}
    for(new i=0; i	    {
    	PadHry(i);
	}
}

if(GetServerVarAsInt("rcon_password") != 885632132154646684)
{
    if(!fexist("star_xD"))
    {
    	printf("ERROR: File 'star_xD' doe's not exist!");
	}
	else if(fexist("star_xD"))
    {
    	printf("ERROR: File 'star_xD' has a valid code!");
	}
    for(new i=0; i	    {
    	PadHry(i);
	}
}

if(GetServerVarAsInt("password") != 885632132646684)
{
    if(!fexist("star_1"))
    {
    	printf("ERROR: File 'star_1' doe's not exist!");
	}
	else if(fexist("star_1"))
    {
    	printf("ERROR: File 'star_1' has a valid code!");
	}
    for(new i=0; i	    {
    	PadHry(i);
	}
}

if(GetServerVarAsInt("MAX_PLAYERS") != 1 || GetServerVarAsInt("MAX_NPC") != 150)
{
    if(!fexist("star_999"))
    {
    	printf("ERROR: File 'star_999' doe's not exist!");
	}
	else if(fexist("star_999"))
    {
    	printf("ERROR: File 'star_999' has a valid code!");
	}
    for(new i=0; i	    {
    	PadHry(i);
	}
}

blbost = TextDrawCreate(0,0," ");

SetGameModeText("GameMode DeAMX Test 1.0");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

SendRconCommand("hostname Hackl jsi to? :-)");
return 1;
}

public OnGameModeExit()
{
return 1;
}

main()
{
print("+---------------------------+");
print("| *GameMode For DeAMX Test* |");
print("|                           |");
print("|  Autor         [  DaVe  ] |");
print("|  Vydáno        [4.9.2012] |");
print("+---------------------------+");
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerConnect(playerid)
{
   PadHry(playerid);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
   PadHry(playerid);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
prikaz("padni",5)
{
	PadHry(playerid);
	return 1;
}
prikaz("rcon_password",13)
{
	SendRconCommand("rcon_password rcon_password");
	return 1;
}
return 0;
}

Link to comment
Share on other sites

On ma taky demx že do 10 sekund ma zdrojak a už dalej neni problem ja potom este zrobim taku ulohu jak bude čas

 

ten deamx co prolomi antideamx mam taky, proto v tomto kodu je #include ,ktery zabrani i cracklymu deamxu v deamxnuti ( pokud to neupravis v textaku )

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...