Jump to content
  • Chatbox

    Load More
    You don't have permission to chat.

Recommended Posts

Posted

Salut, am un gamemode burned cu apartamente.

Cand incerc sa dau /sleep zice ca nu sunt intr-o casa, aveti idee de ce?

- comanda sleep:

YCMD:sleep(playerid, params[], help) {
    if(GetPlayerInterior(playerid) == 0) return SCM(playerid, COLOR_GREY, "Nu esti intr-o casa.");
    if(InHouse[playerid] != PlayerInfo[playerid][pHouse]) return SCM(playerid, -1, "Nu ai rent in aceasta casa!");
    if(PlayerInfo[playerid][pWantedLevel] != 0) return SCM(playerid, COLOR_GREY, "Nu poti dormi deoarece esti cautat de politie.");
    if(PlayerInfo[playerid][pSleeping] == 0) {
        PlayerInfo[playerid][pSleeping] = 1;
        TogglePlayerControllable(playerid,0);
        SCM(playerid, COLOR_LGREEN, "Acum dormi!");
        SCM(playerid, COLOR_LGREEN, "Recomandare: Daca doresti sa lasi jocul in bara, iti recomandam sa apesi intai tasta ESC pentru a nu aparea probleme.");
        LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        SetPlayerHealthEx(playerid, 99);
        SetPlayerColor(playerid, COLOR_GREY);
        Freezed[playerid] = 1;
        UpdateVar(playerid, "Status", 2);
        if(OnDuty[playerid] == 1) SetPlayerSkinEx(playerid, 305);
        OnDuty[playerid] = 0;
        SetPlayerArmourEx(playerid, 0);
        ResetWeapons(playerid);
        
        NearWanted[playerid] = 0;
        PlayerTextDrawHide(playerid, NearTD);
        tazer[playerid] = 0;    
    }
    else if(PlayerInfo[playerid][pSleeping] == 1) {
        PlayerInfo[playerid][pSleeping] = 0;
        TogglePlayerControllable(playerid,1);
        ClearAnimations(playerid);
        SCM(playerid, COLOR_LGREEN, "Bine ai revenit!");
        SetPlayerToTeamColor(playerid);
        SetPlayerHealthEx(playerid, 99);
        Freezed[playerid] = 0;
        UpdateVar(playerid, "Status", 1);
    }
    return 1;
}

  • 3 years later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...