Jump to content

Modificare.


Pitbul97

Recommended Posts

Salutare tuturor ma numesc Pitbul si am nevoie de mare ajutor am cateva probleme si daca mati ajuta as fi recunoscator.

1. As dori ca la comanda /factions cand tastez sa imi apara langa numele factiunii si Liderul  exemplu: Lspd [Xsulescu] Online / Ofline.

2. Mai important as dori sa Modific comanda /invite la factiuni eu cand tastez ca lider /invite id automat il baga in factiune eu vreau ca atunci cad iti da /invite ca atu sa tai /acceptinvite id 

3. Atunci cand inviti pe cineva in factiune automat sa ii dea skinurile pe care leam setat eu in GM ca la mine e sa iti alegi singur skinul.

Ma puteti ajuta ??

Link to comment
Share on other sites

1 nu se cer scripturi

2 arata ce ai incercat sa faci

3 posteaza la ajutor scripting

4 sa respecti modelul

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Quote

Comanda actuala /factions

 

}
CMD:factions(playerid, params[])
    {
         if(IsPlayerConnected(playerid))
        {
             SendClientMessage(playerid,COLOR_WHITE," Factiunile serverului: ");
             SendClientMessage(playerid,COLOR_WHITE,"|---------------------------------------------|");
             SendClientMessage(playerid,0x456FCFFF,"Police Departament/Recrutarii lvl 5 {FFFFFF}| Faction ID: {0099FF}1");
             SendClientMessage(playerid,0x456FCFFF,"Federal Bureau of Investigations/Recrutarii lvl 5 {FFFFFF}| Faction ID: {0099FF}2");
             SendClientMessage(playerid,0x456FCFFF,"National Guard/Recrutarii lvl 5 {FFFFFF}| Faction ID: {0099FF}3");
             SendClientMessage(playerid,0xD900D999,"The Ballas Family/Recrutarii lvl 4 {FFFFFF}| Faction ID: {0099FF}4");
             SendClientMessage(playerid,0x0080C0B2,"The Rifa/Recrutarii lvl 4 {FFFFFF}| Faction ID: {0099FF}5");
             SendClientMessage(playerid,0xFF9700DE,"Los Vagos/Recrutarii lvl 4 {FFFFFF}| Faction ID: {0099FF}6");
             SendClientMessage(playerid,0xBEFDBDFF,"Gouverment/Recrutarii lvl 5 {FFFFFF}| Faction ID: {0099FF}7");
             SendClientMessage(playerid,0xFFFFA8FF,"Tow Car Company/Recrutarii lvl 3 {FFFFFF}| Faction ID: {0099FF}8");
             SendClientMessage(playerid,0xFFABFCFF,"News Reporters/Recrutarii lvl 3 {FFFFFF}| Faction ID: {0099FF}9");
             SendClientMessage(playerid,0x66FF99FF,"The Grove Street/Recrutarii lvl 4 {FFFFFF}| Faction ID: {99FFCC}10");
             SendClientMessage(playerid,0xA5443BF3,"Hitman Agency/Recrutarii lvl 5 {FFFFFF}| Faction ID: {0099FF}11");
             SendClientMessage(playerid,0x10E056FF,"School Instructors/Recrutarii lvl 3 {FFFFFF}| Faction ID: {0099FF}12");
             SendClientMessage(playerid,COLOR_YELLOW,"Taxi Cab Company/Recrutarii lvl 3 {FFFFFF}| Faction ID: {0099FF}13");
             SendClientMessage(playerid,0xf86448FF,"Paramedic Departament/Recrutarii lvl 3 {FFFFFF}| Faction ID: {0099FF}14");
             SendClientMessage(playerid,COLOR_WHITE,"|-----------------14 factiuni-----------------|");
        }
        return 1;
    }

 

 

2. 

Quote

Comanda actuala /invite 

}
CMD:invite(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pLeader] >= 1)
        {
            new id,string[100],giveplayer[30],sendername[30];
            if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFFFFFFFF,"{B8DBFF}Syntax: /invite <Name/Playerid>");
            new ftext[20];
            if(PlayerInfo[id][pFpunish] != 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You can not invite this player because it has faction punish");
            if(IsPlayerConnected(id))
            {
                if(id != INVALID_PLAYER_ID)
                {
                    if(PlayerInfo[id][pMember] == 0 && PlayerInfo[id][pLeader] == 0)
                    {
                        if(PlayerInfo[playerid][pLeader] == 1)
                        {
                            PlayerInfo[id][pTeam] = 2;
                            gTeam[id] = 2;
                            ftext = "Police Departament";
                            ChosenSkin[id] = 280;
                            SetPlayerSkin(id, 280);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 2)
                        {
                            PlayerInfo[id][pTeam] = 2;
                            gTeam[id] = 2;
                            ftext = "FBI";
                            ChosenSkin[id] = 163;
                            SetPlayerSkin(id, 163);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 3)
                        {
                            PlayerInfo[id][pTeam] = 2;
                            gTeam[id] = 2;
                            ftext = "National Guard";
                            ChosenSkin[id] = 285;
                            SetPlayerSkin(id, 285);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 4)
                        {
                            PlayerInfo[id][pTeam] = 5;
                            gTeam[id] = 5;
                            ftext = "Ballas";
                            ChosenSkin[id] = 117;
                            SetPlayerSkin(id, 117);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 5)
                        {
                            PlayerInfo[id][pTeam] = 5;
                            gTeam[id] = 5;
                            ftext = "The Rifa";
                            ChosenSkin[id] = 123;
                            SetPlayerSkin(id, 123);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 6)
                        {
                            PlayerInfo[id][pTeam] = 5;
                            gTeam[id] = 5;
                            ftext = "Los Vagos";
                            ChosenSkin[id] = 98;
                            SetPlayerSkin(id, 98);
                        }
                           else if(PlayerInfo[playerid][pLeader] == 7)
                           {
                            PlayerInfo[id][pTeam] = 2;
                            gTeam[id] = 2;
                            ftext = "Gouverment";
                            ChosenSkin[id] = 228;
                            SetPlayerSkin(id, 228);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 8)
                        {
                            PlayerInfo[id][pTeam] = 4;
                            gTeam[id] = 4;
                            ftext = "Tow Truck Company";
                            ChosenSkin[id] = 50;
                            SetPlayerSkin(id, 50);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 9)
                        {
                            PlayerInfo[id][pTeam] = 4;
                            gTeam[id] = 4;
                            ftext = "News Reporters";
                            ChosenSkin[id] = 188;
                            SetPlayerSkin(id, 188);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 10)
                        {
                            PlayerInfo[id][pTeam] = 5;
                            gTeam[id] = 5;
                            ftext = "The Grove Street";
                            ChosenSkin[id] = 106;
                            SetPlayerSkin(id, 106);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 11)
                        {
                            PlayerInfo[id][pTeam] = 11;
                            gTeam[id] = 11;
                            ftext = "Hitman Agency";
                            ChosenSkin[id] = 118;
                            SetPlayerSkin(id, 118);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 12)
                        {
                            PlayerInfo[id][pTeam] = 4;
                            gTeam[id] = 4;
                            ftext = "School Instructors";
                            ChosenSkin[id] = 153;
                            SetPlayerSkin(id, 153);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 13)
                        {
                            PlayerInfo[id][pTeam] = 4;
                            gTeam[id] = 4;
                            ftext = "Taxi Company";
                            ChosenSkin[id] = 255;
                            SetPlayerSkin(id, 255);
                        }
                        else if(PlayerInfo[playerid][pLeader] == 14)
                        {
                            PlayerInfo[id][pTeam] = 4;
                            gTeam[id] = 4;
                            ftext = "Paramedic Dep.";
                            ChosenSkin[id] = 276;
                            SetPlayerSkin(id, 276);
                        }
                        else { return 1; }
                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        PlayerInfo[id][pMember] = PlayerInfo[playerid][pLeader];
                        PlayerInfo[id][pRank] = 1;
                        printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext);
                        format(string, sizeof(string), "Leader %s Te-a invitat in %s.", sendername,ftext);
                        SendClientMessage(id, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "Lai invitat pe %s in factiunea ta.", giveplayer);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                        SetPlayerInterior(id,0);
                        new rand = random(sizeof(gInviteSpawns));
                        SetPlayerPos(id, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                        SetPlayerFacingAngle(id, gInviteSpawns[rand][3]);
                        SetPlayerCameraPos(id,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                        SetPlayerCameraLookAt(id,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                        TogglePlayerControllable(id, 0);
                        SelectChar[id] = 255;
                        SelectCharID[id] = PlayerInfo[id][pMember];
                        SelectCharPlace[id] = 1;
                        PlayerInfo[id][pChar] = ChosenSkin[id];
                        ShowPlayerDialog(id, DIALOG_CLOTHES, DIALOG_STYLE_MSGBOX,"Clothes:", "Press 'Next' to select the clothes.\nPress 'Done' once you have chosen the clothes.","Next", "Done");
                        new wakaname[25],str[128];
                        GetPlayerName(id,wakaname,sizeof(wakaname));
                        format(str,sizeof(str),"UPDATE users SET `Team`='%d',`Member`='%d',`Rank`='1' WHERE `name`='%s'",PlayerInfo[id][pTeam],PlayerInfo[id][pMember],wakaname);
                        mysql_query(SQL,str);
                        Factionlog(PlayerInfo[id][pMember],PlayerInfo[id][pSQLID],"Joined the Faction.");
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_WHITE, "{FFB870}This player has wanted or is already in a faction.");
                        return 1;
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Atentie: Acest player nu e conectat.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Only leaders can use this command.");
          }
    }
    return 1;
}

 

Link to comment
Share on other sites

HEAD: Liderul  exemplu: Lspd [Xsulescu] Online / Ofline.

trebuie facut cu format(... "text", ah aici pui niste lucruri legate de rankuri, getplayername, "online/offline")

"online/offline" -  pentru asta fa ceva nou in registerul ceva care sa se reseteze mereu cand playerul se delogeaza si cand intra sa se faca "1", trebuie sa faci niste "Entry-uri" noi. daca nu intelegi nica, da-mi add pi FB: Fpk Marius. vorbim acolo.

Ideea ii unar chiar originala, sh vreu s ti ajut s vad ci iese.

Edited by .№_Fpk.Marius_™.
#SclipireDeMoment
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.