[KoS] System Of Fight -
Trinix_PoS [Bizu] - 03.01.2011
Feito Por : Trinix
Descrissгo :
Nada a comentar so digo q e um fs q mostra um menu que voce escolhe o tipo de luta que quer !!!
Imagens :
Nenhuma
Comandos :
/m-luta : Abre o Menu de Seleзгo Das Lutas
Codigo :
pawn Код:
#include <a_samp>
#define COLOR_LIGHTRED 0xFF8282AA
new Menu:systemfighttrinix;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" System of Fight By : Trinix");
print(" Fassa Bom Uso e Coloque Meus Creditos");
print("--------------------------------------\n");
systemfighttrinix = CreateMenu("System Of Fight", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(systemfighttrinix, 0, "Fight ~~> Boxe");
AddMenuItem(systemfighttrinix, 0, "Fight ~~> GiuGtso");
AddMenuItem(systemfighttrinix, 0, "Fight ~~> Street Fight");
AddMenuItem(systemfighttrinix, 0, "Fight~~> Agarra e Chute");
AddMenuItem(systemfighttrinix, 0, "Fight ~~> Normal - Fracote");
AddMenuItem(systemfighttrinix, 0, "Sair / Fechar");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/m-luta", cmdtext, true, 10) == 0)
{
ShowMenuForPlayer(systemfighttrinix, playerid);
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid, COLOR_LIGHTRED,"Voce Estб Vendo o Sistema De Lutas By : Trinix");
return 1;
}
return 0;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == systemfighttrinix)
{
switch(row)
{
case 0:{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
}
case 1:{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
}
case 2:{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
}
case 3:{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
}
case 4:{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
}
case 5:{
SendClientMessage(playerid, 0x00ff00ff, " Menu Fechado : system of fight ");
}
}
}
return 1;
}
Creditos :
[KoS] Trinix !! [Bizu]
Re: [KoS] System Of Fight -
Macintosh - 03.01.2011
Isso aк bizu
KoS Own3d
Ficaria bom se estivesse em dialog... mais em menu tб massa *-*
Re: [KoS] System Of Fight -
PsyShotter - 03.01.2011
Sistema simples mas funcional ^^
Ajuda quem precisa :]
Re: [KoS] System Of Fight -
syslogg - 03.01.2011
bom sisteminha ^^ parabens,
@OFF
em breve tarei fazendo meu primeiro fs e postando no forum =D
Respuesta: [KoS] System Of Fight -
Tom_Park - 03.01.2011
Parabйns Bizu =D
KoS Owna"!!"
Re: [KoS] System Of Fight -
Trinix_PoS [Bizu] - 03.01.2011
opa vlw breve uma atualizaзгo desse FS !!!
Re: [KoS] System Of Fight -
Marco_Nutz - 03.01.2011
Gostei. Boa Trinix..
Re: [KoS] System Of Fight -
[Banido]HigorOliver - 03.01.2011
Bom......
Re: [KoS] System Of Fight -
Trinix_PoS [Bizu] - 03.01.2011
Aos que Gostaram muinto obrigado
@topic
pessoal proxima versao sera tudo em dialog e vai dar pra usar somente nos ginasios de San Andreas .
Re: [KoS] System Of Fight -
Trinix_PoS [Bizu] - 03.01.2011
Nova Versгo Lanзada Em Dialog !!!
Creditos : Trinix e Qlimax
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if(!PlayerToPoint(1,playerid,1930.2745,-1772.3357,13.5469))
{
OnPlayerCommandText(playerid,"/luta");
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 200)
{
if(response)
{
if(listitem == 0)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
}
if(listitem == 1)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
}
if(listitem == 2)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
}
if(listitem == 3)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
}
if(listitem == 4)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
}
}
return 1;
}
public OnGameModeInit()
{
Create3DTextLabel("Digite /luta ou Pressione F",COLOR_WHITE,760.8009,5.5351,1000.7086,50.0,0);//textlabel da academia
AddStaticPickup(1314, 23, 760.8009,5.5351,1000.7086);//staticpickup da academia
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/luta", true) == 0)
{
if(PlayerToPoint(1.0,playerid,760.8009,5.5351,1000.7086))
{
new str[255] = "{FFFFFF} 1 {00FF00}Boxe\n{FFFFFF} 2 {00FF00}KungFu\n{FFFFFF} 3 {00FF00}Luta de Rua\n{FFFFFF} 4 {00FF00}GrabKick\n{FFFFFF} 5 {00FF00}ElBow";
ShowPlayerDialog(playerid, 200, DIALOG_STYLE_LIST, "{FFFF00}Estilos de Luta", str, "Selecionar", "Sair");
}
return 1;
}
0.3c