Jump to content

Question

Posted

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 !

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.