•  
     

Gerador de binds em php

Achei esse gerador na net e decidi traduzi, ta ae.

ARQUIVOS

index.php

Código: Selecionar todos

<!doctype html>
<html>
<body>
<iframe id="blockrandom" name="iframe"src="http://geradorbind.96.lt/index.php"
	width="100%"
	height="1000"
	scrolling="auto"
	align="top"
	frameborder="0"

</iframe>
</body>
</html>



Gform.js

Código: Selecionar todos

function GerarForm(form)
{
	bind ='bind "' + form.key_press.value + '"  "';
	if (form.do_primary.checked)  bind = bind + form.primary_weapon.value + ";";
	if (form.primary_ammo.checked)  bind = bind + "primammo;";
	if (form.do_secondary.checked)  bind = bind + form.secondary_weapon.value + ";";
	if (form.secondary_ammo.checked)  bind = bind + "secammo;";
	for (i=0; i<5; i++)
	{
		if (form.objetos.options[i].selected) bind = bind + form.objetos[i].value + ";";
	}
	if (form.do_kevlar.checked)  bind = bind + form.item_kevlar.value + ";";
	if (form.do_flashbang.checked)  bind = bind + form.item_flashbang.value + ";";
	if (form.do_msg.checked)  bind = bind + form.say_type.value + " " + form.msg.value + ";";
	if (form.do_radio.checked)  bind = bind + form.radio_command.value + ";";
	bind = bind + '"';
	ventana = window.open("empty.html","replace","width=800, height=150");
	ventana.document.write('<p><font color="green">Gerador de binds traduzido ;<font color="red"> [i]NcO..</p>');
	ventana.document.write('<font color="blue">' + bind + '</font>'); 
	ventana.document.write('<p><font color="green">Copie este codigo e cole no autoexec.cfg ou userconfig.cfg</p>');
	ventana.document.bgColor = "#FFFFFF";
}



styles.css

Código: Selecionar todos

body {
	margin-top: 4px;
	margin-bottom: 4px;;
}
#conteudo {
	display: block;
	float: left;
	width: 620px;
	text-align: justify;
	color: #999999;
	padding-bottom: 10px;
}
#conteudo .armasSection {
	color: #FFFFFF;
	clear: left;
}

#conteudo .armasLinks {
	padding: 0px;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
	list-style-type: none;
	text-align: center;
}
#conteudo .armasTitle {
	font-weight: bold;
	color: #FFFFFF;
	clear: both;
	display: block;
}
#conteudo .armasImg {
	display: block;
	float: left;
	margin-bottom: 60px;
	margin-right: 20px;
}
#conteudo .armasTips {
	float: left;
	color: #CCCCCC;
	font-weight: bold;
	margin-right: 5px;
	display: inline;
}
#conteudo .error404 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: x-large;
	text-align: center;
	display: block;
	padding-top: 20px;
}

#bottom {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: x-small;
	color: #AAAAAA;
	text-align: justify;
	display: block;
	margin-right: auto;
	margin-left: auto;
	padding-right: 15px;
	padding-left: 15px;
	font-weight: normal;
	margin-top: 0px;
	margin-bottom: 0px;
	padding-top: 1px;
}
.colorWhite {
	color: #FFFFFF;
}
.colorYellow {
	font-weight: bold;
	color: #FFFF00;
}

.negrita {
	font-weight: bold;
}
.cursiva {
	font-style: italic;
}
.derecha {
	text-align: right;
}
.centrado {
	text-align: center !important;
}
.table_cell_color_name {
	color: #FF6600;
}
.table_cell_color_description {
	color: #0099FF;
}
.form_buyscript {
	text-align: left;
	display: block;
	margin-right: auto;
	margin-left: auto;
	padding-left: 30px;
	width: 50%;
	border: 1px solid #000000;
	padding-top: 10px;
	padding-right: 30px;
	padding-bottom: 10px;
	background-color: #6495ed;
}
.form_buyscript fieldset {
	border: 1px dashed #000000;
}
.form_buyscript legend {
	background-color: #191970;
	color: #000000;
	font-weight: bold;
	padding-top: 2px;
	padding-bottom: 2px;
	text-align: center;
}
.form_buyscript label {
	display: inline;
	color: #000000;
}
.form_buyscript hr {
	color: #FF6600;
	padding-right: 20px;
	
}



Demo: Gerador
 
ta bem legal man vlw pela postagem :)