Jump to content

Recommended Posts

Posted

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;
}

 

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.