03.01.2011, 11:58
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;
}
[KoS] Trinix !! [Bizu]