Jump to content

Problema Freeze


david1995

Recommended Posts

Deci salut !

Cand dau areafreeze *sa dea freeze pe o anumita raza ... playeri daca dau comanda /handsup si f numai sunt in freeze. De ce? 

Comanda areafreeze

Quote

CMD:areafreeze(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] >= 2)
        {
            new range,sendername[MAX_PLAYER_NAME],string[256];
            if(sscanf(params, "i",range)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {FF0000}/areafreeze [Range]");
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "AdmInfo: {FF0000}%s {FFFFFF}a dat Freeze la toti jucatorii aflati pe o raza de  {FF0000}(%d){FFFFFF} Metri", sendername, range);
                ABroadCast(COLOR_YELLOW,string,1);
                for(new i = 0; i < MAX_PLAYERS; i ++)
                {
                    if (ProxDetectorS(range, playerid, i))
                    {
                        TogglePlayerControllable(i, 0);
                    }
                }
            }
        }
        else return SendClientMessage(playerid, COLOR_WHITE,"{5CAD5C}Error: Your admin/help level isn't high enough to use this command.");
    }
    return 1;
}

 

Si handsup daca e nevoie

 

Quote

CMD:handsup(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(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{999999}Animations are inaccessible on foot.");
    if(PlayerPaintballing[playerid] == 1) return SCM(playerid,COLOR_WHITE,"{FFF8C6}Command is not currently accessible.");
    {
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    }
    return 1;
}

 

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

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