Jump to content
  • 0

Problema Jetpack si stil de lupta


GetTheFuckOut

Question

Salut, am 2 probleme:

1. Uneori cand folosesc /jetpack, imi apare jetpack-ul in spate, dar in 2 secunde dispare:|. Comanda e corect scriptata, dar nu imi dau seama de la ce e...

2. Cand activez un stil de lupta, daca tin apasat click dreapta si apas rar F merge, dar daca apas F rapid de mai multe ori nu mai merge si imi arat o miscare ciudata.

Stiti cumva de la ce e? Multumesc anticipat!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Incearca sa folosesti asta pentru GetPack:

[pawn]

if(strcmp(cmd, "/jetpack", true) == 0)

    {

        if(PlayerInfo[playerid][pAdmin] >= 1337)

{

            SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);

            GetPlayerName(playerid, sendername, sizeof(sendername));

        format(string, 256, "[AdmWarning]: %s a folosit comada /jetpack", sendername);

        ABroadCast(COLOR_LIGHTRED,string,1);

            return 1;

        }

    }[/pawn]

si asta pentru stilul de lupta:

[pawn] if(strcmp(cmd, "/fightstyle", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SCM(playerid, COLOR_WHITE, "USAGE: /styles [item number]");

SCM(playerid, COLOR_LIGHTRED, "|_____________________ Fight Styles _____________________|");

SCM(playerid, COLOR_WHITE, " ");

SCM(playerid, COLOR_WHITE, "1: Boxing ($5000)");

SCM(playerid, COLOR_WHITE, "2: Kung Fu ($2500)");

SCM(playerid, COLOR_WHITE, "3: Grab'n'Kick ($4000)");

SCM(playerid, COLOR_WHITE, "4: KneeHead ($10000)");

SCM(playerid, COLOR_WHITE, "5: Default ($200)");

return 1;

}

new item = strval(tmp);

if (item == 1 && GetPlayerMoney(playerid) > 5000)

{

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

PlayerInfo[playerid][pFS] = 1;

GivePlayerMoney(playerid, -5000);

GameTextForPlayer(playerid, "~w~You Payed ~g~$5000!", 4000, 1);

SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);

format(string, sizeof(string), "%s Walks into the Sand bag and starts to punch it...", sendername);

ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);

return 1;

}

else if (item == 2 && GetPlayerMoney(playerid) > 2500)

{

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

PlayerInfo[playerid][pFS] = 2;

GivePlayerMoney(playerid, -2500);

GameTextForPlayer(playerid, "~w~You Payed ~g~$2500!", 4000, 1);

SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);

format(string, sizeof(string), "%s Walks into the Platform and starts to do some Taichi...", sendername);

ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);

return 1;

}

else if (item == 3 && GetPlayerMoney(playerid) > 4000)

{

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

PlayerInfo[playerid][pFS] = 3;

GivePlayerMoney(playerid, -4000);

GameTextForPlayer(playerid, "~w~You Payed ~g~$4000!", 4000, 1);

SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);

format(string, sizeof(string), "%s Walks into the Sand bag and starts to kick it...", sendername);

ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);

return 1;

}

else if (item == 5 && GetPlayerMoney(playerid) > 200)

{

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

PlayerInfo[playerid][pFS] = 0;

GivePlayerMoney(playerid, -200);

GameTextForPlayer(playerid, "~w~You Payed ~g~$200!", 4000, 1);

SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);

format(string, sizeof(string), "%s Walks into the tread and starts to run...", sendername);

ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);

return 1;

}

else if (item == 4 && GetPlayerMoney(playerid) > 15000)

{

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

PlayerInfo[playerid][pFS] = 4;

GivePlayerMoney(playerid, -15000);

GameTextForPlayer(playerid, "~w~You Payed ~g~$15000!", 4000, 1);

SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);

format(string, sizeof(string), "%s Walks into the Platform and starts to Punch the air...", sendername);

ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);

return 1;

}

    }

return 1;

}

[/pawn]

Sper ca ti-am fost de folos :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.