1 post in this topic

Спойлер

CMD:selfie(playerid)
{
    if(!GetPVarInt(playerid,"Selfie"))
    {
        PlayerPlaySound(playerid, 17001, 0.0, 0.0, 0.0);
        SendClientMessage(playerid, 0xFFC800AA, "[Подсказка]: Используйте /headmove, чтобы было выровнять голову.");
        SendClientMessage(playerid, 0xFFC800AA, "[Подсказка]: Нажмите 'F8', для того чтобы сделать фото.");
        SendClientMessage(playerid, 0xFFC800AA, "[Подсказка]: Используйте '/selfie' , чтобы сбросить анимацию.");
        GetPlayerPos(playerid, positionCam[playerid][0], positionCam[playerid][1], positionCam[playerid][2]);
        static Float: n1X, Float: n1Y, Float:PositionCam;
        GetPlayerFacingAngle(playerid, PositionCam);
        n1X = positionCam[playerid][0] + Radiuses * floatcos(180.0, degrees);
        n1Y = positionCam[playerid][1] + Radiuses * floatsin(180.0, degrees);
        SetPlayerAttachedObject(playerid, 0, 18868, 6, 0.06, 0.01, 0.08, 180.0, 90.0, 0.0);
        SetPlayerCameraPos(playerid, n1X, n1Y, positionCam[playerid][2] + Height);
        SetPlayerCameraLookAt(playerid, positionCam[playerid][0], positionCam[playerid][1], positionCam[playerid][2] + 1);
        SetPlayerFacingAngle(playerid, Reedeg[playerid] - 270.0);
        ApplyAnimation(playerid, "PED", "gang_gunstand", 4.1, 1, 1, 1, 1, 1, 1);
        SetPVarInt(playerid, "Selfie", 1);
        SetPVarInt(playerid, "selfie_knopka", 1);
    }
    else
    {
        TogglePlayerControllable(playerid, 1);
        SetCameraBehindPlayer(playerid);
        RemovePlayerAttachedObject(playerid, 0);
        ApplyAnimation(playerid, "PED", "ATM", 4.1, 0, 1, 1, 0, 1, 1);
        DeletePVar(playerid, "Selfie");
        DeletePVar(playerid, "selfie_knopka");
    }
}

 


 

 

Edited by DEST

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By def
      arizona.pwn(23374) : error 012: invalid function call, not a valid address
      arizona.pwn(23374) : error 001: expected token: ";", but found ")"
      arizona.pwn(23374) : error 029: invalid expression, assumed zero
      arizona.pwn(23374) : fatal error 107: too many error messages on one line
      жалуется на данную строчку:
       
      %s{cccccc}Для продолжения нажмите 'Далее'",PN(playerid),playerid,ItemsInfo[itemid][ItemName2],hours,cost*hours,Inventory[playerid][2][slot], AksColorName(Inventory[playerid][4][slot]), Inventory[playerid][5][slot] ? GetNameStripe(Inventory[playerid][5][slot]) : "");