Szerző Téma: Harc Style  (Megtekintve 1492 alkalommal)

Nem elérhető Stramm

  • 193
    • Profil megtekintése
Harc Style
« Dátum: 2013. Február 20. - 11:48:32 »
+3 Show voters
SSziasztok készítettem egy harc Style váltó scriptet és gondoltam megosztom veletek is
Harc Stylusok :
-Boxing
-KeenHead
-GrabKick
-Elbow
 
#include <a_samp>
#pragma tabsize 0
#define DIALOG_FIGHT 1
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
        print(\"\\n--------------------------------------\");
        print(\" Fight System\");
        print(\"--------------------------------------\\n\");
        return 1;
}
public OnFilterScriptExit()
{
        return 1;
}
#else
main()
{
        print(\"\\n----------------------------------\");
        print(\" Fight System\");
        print(\"----------------------------------\\n\");
}
#endif
public OnGameModeInit()
{
UsePlayerPedAnims();
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/fight\", cmdtext, true, 6) == 0)
        {
                ShowPlayerDialog(playerid, DIALOG_FIGHT, DIALOG_STYLE_LIST, \"Harc Styles\", \"Normal\\nBoxing\\nKneeHead\\nKungFu\\nGrabKick\\nElbow\", \"Kiválaszt\", \"Mégse\");
                return 1;
        }
        return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_FIGHT)
    {
        if(response)
        {
                if(listitem == 0) // Normal
                    {
                             SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
                                SendClientMessage(playerid, -1, \"* Harc Styles Beállítva erre: Normal\");
                        }
                        if(listitem == 1) // Boxing
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
                                SendClientMessage(playerid, -1, \"* Harc Styles Beállítva erre: Boxing\");
                        }
                        if(listitem == 2) // KneeHead
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
                                SendClientMessage(playerid, -1, \"* Harc Styles Beállítva erre: KneeHead\");
                        }
                        if(listitem == 4) // GrabKick
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
                                SendClientMessage(playerid, -1, \"* vHarc Styles Beállítva erre: GrabKick\");
                        }
                        if(listitem == 5) // Elbow
                        {
                                SetPlayerFightingStyle(playerid,  FIGHT_STYLE_ELBOW);
                                SendClientMessage(playerid, -1, \"* Harc Styles Beállítva erre: Normal Elbow\");
                        }
        }
        return 1;
    }
    return 0;
}
« Utoljára szerkesztve: 2013. Február 21. - 11:38:44 írta Cannonn »

Nem elérhető Beckham

  • 1693
  • Noresz
  • Discord: Noresz#4265
    • Profil megtekintése
    • OctansV Alt:v szervere
Harc Style
« Válasz #1 Dátum: 2013. Február 20. - 12:34:20 »
0 Show voters
Kezdõknek jól jöhet,Rakd ki a elõtagot.

Harc Style
« Válasz #2 Dátum: 2013. Február 22. - 21:21:06 »
0 Show voters
Nem rossz.
Egyszer még jól jöhet.
Plusz

Harc Style
« Válasz #3 Dátum: 2013. Február 25. - 09:00:48 »
0 Show voters
Szerintem felhasznalhato esetleg :)

xD1999

  • Vendég
Harc Style
« Válasz #4 Dátum: 2013. Április 14. - 08:22:39 »
0 Show voters
Szép megy a +!

Nem elérhető ][Fo[R]cE][

  • 86
  • SAJT!
    • Profil megtekintése
Harc Style
« Válasz #5 Dátum: 2013. Június 08. - 12:07:12 »
0 Show voters
Hát nem sokat lehet kezdeni vele, de a + -t adom a erõfeszítésért :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal