Jump to content

Klan password


Randley

Recommended Posts

cawte, urobil som také FS že keď sa tam niekto pripojí z vašim tagom klanu a nebude vediet heslo klanu tak ho to kickne, je to moj prvy FS.

 

Screeny:

 

[attachment=0]zle_heslo.JPG[/attachment]

[attachment=1]spravne_heslo.JPG[/attachment]

[attachment=2]prihlasovanie.JPG[/attachment]

 

 

Download:

http://www.uloz.to/10039689/antiklan-pwn

 

Heslo suboru : pawno

 

 

a prosim moje meno nechajte Dakujem

Link to comment
Share on other sites

Velmi hezké ...

Zkoušel jsi to ..

 

Teďka nevím jestli ..

 

if(!strcmp(inputtext, PASSWORDCLAN, false))

 

tohle neznamená jestli odpověděl špatně ..

 

Každopádně hezká práce ;)

Link to comment
Share on other sites

Pekná práca . Pre klany užitočné :)

Script hodnotím : 8/10 , niečo by som tam ešte upravil na tvojom mieste :)

 

čo by som tam este mohol dat?

Link to comment
Share on other sites

Velmi hezké ...

Zkoušel jsi to ..

 

Teďka nevím jestli ..

 

if(!strcmp(inputtext, PASSWORDCLAN, false))

 

tohle neznamená jestli odpověděl špatně ..

 

Každopádně hezká práce ;)

 

J skousel sem to de to potom kdyby to neslo tak bych sem asi nedal screeny :d

Link to comment
Share on other sites

Pekná práca . Pre klany užitočné :)

Script hodnotím : 8/10 , niečo by som tam ešte upravil na tvojom mieste :)

 

čo by som tam este mohol dat?

Pridať zátvorky napríklad na prvom obrázku je :

*** bol kicknutý serverom . [Dovod: Zle klan heslo.

Tam by som dal namiesto bodky zátvorku a tak , proste upraviť to aby sa klan mohol reprezentovať . Tiež by som tam ešte pridal aj pre majiteľa klanu niake jeho súkromné heslo :)

Link to comment
Share on other sites

Velmi hezké ...

Zkoušel jsi to ..

 

Teďka nevím jestli ..

 

if(!strcmp(inputtext, PASSWORDCLAN, false))

 

tohle neznamená jestli odpověděl špatně ..

 

Každopádně hezká práce ;)

nie, to false znamená že je rozdiel medzi "HeSlo" a "HESLO" ;) kebyže je true tak je jedno...

 

-- pon 22. srp 2011 10:20:08 --

 

cawte, urobil som také FS že keď sa tam niekto pripojí z vašim tagom klanu a nebude vediet heslo klanu tak ho to kickne, je to moj prvy FS.

 

Download:

http://www.uloz.to/10039689/antiklan-pwn

 

Heslo suboru : pawno

 

 

a prosim moje meno nechajte Dakujem

Ja som vedel že je to copy

 

http://forum.sa-mp.com/showthread.php?t ... n+password

 

http://pastebin.com/a5CmqGxv (Original)

vs

 

#include 
#define DIALOGCLAN 1000
#define TAGCLAN "[CSH]" // priklad - [CSH], prepiste si
#define PASSWORDCLAN "WHITE" //priklad - WHITE, prepiste si
#define ROSA                 0xFF66FFAA
#define BLU_CHIARO           0x00BFFFAA

public OnFilterScriptInit()
{
print("\n------------------------------------------");
print(" Anti klan tag by [CSH]Torrent ");
print("------------------------------------------\n");
return 1;
}

public OnPlayerConnect(playerid)
{
	new stringa[500];
new nome[24];
GetPlayerName(playerid, nome, 24);
if(strfind(nome, TAGCLAN, true) == 0)
{
	format(stringa, sizeof(stringa), "{FFFFFF}Vitaj {FF4444}%s{FFFFFF}!\nMusis napisat heslo klanu {FF4444}%s{FFFFFF}.\n{FFFFFF}Vloz heslo klanu a potvrd.", nome);
	ShowPlayerDialog(playerid, DIALOGCLAN, DIALOG_STYLE_INPUT, "{33AA33}Klan", stringa, "Potvrd", "Koniec");
}
else
{
	SendClientMessage(playerid, BLU_CHIARO, "Vitaj!");
}
return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

{
	new stringa[500];
    if(dialogid == DIALOGCLAN)
	{
	    if(response)
	    {
	        if(!strlen(inputtext))
			{
			    new nome[24];
	        	GetPlayerName(playerid, nome, 24);
				format(stringa, sizeof stringa, "{FF4444}Chyba:{FFFFFF} Vloz heslo.\n\n{FFFFFF}Vitaj {FF4444}%s{FFFFFF}!\nMusis napisat heslo klanu {FF4444}%s{FFFFFF}.\n{FFFFFF}Vloz heslo klanu a potrvd.", nome);
				ShowPlayerDialog(playerid, DIALOGCLAN, DIALOG_STYLE_INPUT, "{33AA33}Ucet:", stringa, "Potrvd", "Koniec");
				return 0;
			}
	        if(!strcmp(inputtext, PASSWORDCLAN, false))
	        {
	            new nome[24];
	        	GetPlayerName(playerid, nome, 24);
				format(stringa, sizeof(stringa), "** {FFFFFF}%s{00BFFF} bol potrvrdeny ako clen klanu.", nome);
				SendClientMessageToAll(BLU_CHIARO, stringa);
				SendClientMessage(playerid, BLU_CHIARO, "Bol si potrvrdeny ako clen klanu!");
   				PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
				return 1;
			}
			else
			{
   				new nome[24];
	        	GetPlayerName(playerid, nome, 24);
				format(stringa, sizeof(stringa), "** {FFFFFF}%s{00BFFF} bol kicknuty serverom. [Dovod]", nome);
 				SendClientMessageToAll(BLU_CHIARO, stringa);
 				SendClientMessage(playerid, ROSA, "*** {FFFFFF}Bol si kicknuty. Dovod: {FF66FF})Zle klan heslo{FFFFFF}.");
  				Kick(playerid);
       		}
		}
		else if(!response)
		{
		    new nome[24];
     		GetPlayerName(playerid, nome, 24);
		    SendClientMessage(playerid, ROSA, "*** {FFFFFF}bol kicknuty serverom. [Dovod]", nome);
			SendClientMessageToAll(BLU_CHIARO, stringa);
			Kick(playerid);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
		}
	}
	return 1;
}
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...