Jump to content

Bladex

Membru
  • Posts

    146
  • Joined

  • Last visited

    Never

Posts posted by Bladex

  1. [pawn] if(strcmp(cmd, "/invite", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");

    return 1;

    }

    new para1;

    new ftext[20];

    para1 = ReturnUser(tmp);

    if (PlayerInfo[playerid][pLeader] >= 1)

    {

        if(IsPlayerConnected(para1))

        {

            if(para1 != INVALID_PLAYER_ID)

            {

        if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)

        {

            if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Departament"; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71); }

            else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Los Santos FBI"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }

            else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }

            else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }

            else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Surenos"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }

            else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "La Famiglia Sinatra"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }

            else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }

            else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 249; SetPlayerSkin(para1, 249); }

            else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "ABC Studio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }

            else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }

            else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }

            else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yamaguchi"; ChosenSkin[para1] = 169; SetPlayerSkin(para1, 169); }

            else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Chornaya Bratva"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 258); }

            else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Vice"; ChosenSkin[para1] = 143; SetPlayerSkin(para1, 143); }

            else { return 1; }

    GetPlayerName(para1, giveplayer, sizeof(giveplayer));

    PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];

    PlayerInfo[para1][pRank] = 1;

    printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext);

    format(string, sizeof(string), "  You have Joined the %s, you were invited by Leader %s", ftext, sendername);

    SendClientMessage(para1, COLOR_WHITE, string);

    format(string, sizeof(string), "  You have Invited %s to join the %s.", giveplayer,ftext);

    SendClientMessage(playerid, COLOR_WHITE, string);

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is currently Wanted / a Different Team / or already a Family Member.");

        return 1;

    }

    }

    }//not connected

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command(leaders only)!");

    }

    }

    return 1;

    }[/pawn]

    incearca asa , ai scris prea mult acol lspd am lasat doar police department

  2. Nu imi apar teritoriile nush dc e pt sistem de war

    zonabunasinatra = GangZoneCreate(2349.306, -1141.021, 2554.659, -1022.589); //Las Colinas

    lspdzone = GangZoneCreate(2406.349, -2060.845, 2531.842, -1989.786); // Willowfield;

    hhhganggrove = GangZoneCreate(2695.364, -2060.845, 2798.041, -1898.988); //Playa Del Seville

    gagonbunbloods = GangZoneCreate(2432.969, -1444.997, 2501.419, -1263.401); //East Los Santos

    liber11 = GangZoneCreate(1991.839, -1760.817, 2086.91, -1606.855); //Idlewood

    liber22 = GangZoneCreate(1851.135, -1464.736, 1991.839, -1342.356); //Skate Park

    liber33 = GangZoneCreate(2721.984, -1405.52, 2912.126, -1212.081); //East Beach

    zlibera33 = GangZoneCreate(1854.937, -1263.401, 2067.896, -1141.021); //Gleen Park*/

  3. Cum fac sa pot da la orice masina /apark si sa ramana acolo?

    [pawn] if(strcmp(cmd, "/apark", true) == 0)

    {

    if(IsPlayerConnected(playerid))

    {

    new Float:x,Float:y,Float:z;

    new Float:a;

    new carid;

    carid = GetPlayerVehicleID(playerid);

    GetPlayerName(playerid, playername, sizeof(playername));

    GetVehiclePos(carid, x, y, z);

    // GetPlayerFacingAngle(playerid, a);

    GetVehicleZAngle(carid, a);

    if(PlayerInfo[playerid][pAdmin] >= 3)

    {

    CarInfo[carid][cLocationx] = x;

    CarInfo[carid][cLocationy] = y;

    CarInfo[carid][cLocationz] = z;

    CarInfo[carid][cAngle] = a;

    format(string, sizeof(string), "~n~ You have parked your car in this location. ~n~");

    GameTextForPlayer(playerid, "You have parked this car in this position. It will respawn here.", 10000, 3);

    OnPropUpdate();

    OnPlayerUpdateEx(playerid);

        DestroyVehicle(carid);

        CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);

    return 1;

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  You are not authorized to use that command !");

        return 1;

    }

    }

    return 1;

    }[/pawn]

  4. nu conteaza in afara jocului ca e acolo unde dai add server si alea

    public DollahScoreUpdate()

    {

    new LevScore;

    for(new i=0; i<MAX_PLAYERS; i++)

    {

    if(IsPlayerConnected(i))

    {

      LevScore = PlayerInfo[pLevel];

    SetPlayerScore(i, LevScore);

    }

    }

    return 1;

    }

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