Jump to content
  • 0

Problema flymode


david1995

Question

Salut eu am incercat sa fac o comanda fly , adica sa pot zbura si nu functioneaza

Adica nu pot zbura .

comanda

Quote

CMD:flymode(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Contul tau este blocat. Foloseste /loginpin pentru al debloca. Daca nu ai un pin foloseste /addpin.");
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new sendername[30],string[256];
            if(PlayerInfo[playerid][pFlyMode] == 0)
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                PlayerInfo[playerid][pFlyMode] = 1;
                format(string,sizeof(string),"%s is now in flymode.", sendername);
                SetPlayerHealth(playerid, 500000.0);
            }
            else
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                PlayerInfo[playerid][pFlyMode] = 0;
                format(string,sizeof(string),"%s has stopped flymode.", sendername);
                StopFly(playerid);
                SetPlayerHealth(playerid, 100);
            }
            ABroadCast(COLOR_YELLOW,string,1);
        }
        else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
    }
    return 1;
}

Ma puteti ajuta va rog !

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.