Jump to content
  • 0

problema cu skin-urile


Seven

Question

Salut. Am si eu o problema cu skin-urile de la factiuni . Deci ca dau fac  pe cineva lider la o factiune  , ex:  armata  si ii dau respawn are skin de lider armata ... dar dupa ce intra iar pe server are skin id - 7 [ Skin_7.png ]

O seara buna in continuare  si Sarbatori Fericite!

Sa va dau codul /makeleader

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

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeleader [playerid/PartOfName] [Number(1-16)]");

return 1;

}

new para1;

new level;

para1 = ReturnUser(tmp);

tmp = strtok(cmdtext, idx);

level = strval(tmp);

if(level > 17 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "  Dont go below number 0, or above number 17 !"); return 1; }

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

{

    if(IsPlayerConnected(para1))

    {

        if(para1 != INVALID_PLAYER_ID)

        {

            if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255 || PlayerInfo[para1][pPunish] > 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "  Acel player este deja in Factiune/Familie/Punished!");

                return 1;

            }

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

GetPlayerName(playerid, sendername, sizeof(sendername));

PlayerInfo[para1][pLeader] = level;

format(string, sizeof(string), "  Ai fost promovat Lider la factiunea dorita de catre Adminul %s", sendername);

SendClientMessage(para1, COLOR_LIGHTBLUE, string);

format(string, sizeof(string), "  Ai dat lui %s Lider la factiunea numarul %d.", giveplayer,level);

SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

if(level == 0) { PlayerInfo[para1][pChar] = 60; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }

else if(level == 1) { PlayerInfo[para1][pChar] = 295; } //Police Force

else if(level == 2) { PlayerInfo[para1][pChar] = 285; } //FBI/ATF

else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //Armata Romana

else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance

else if(level == 5) { PlayerInfo[para1][pChar] = 115; } //Dragonu

else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //Camataru

else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor

else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans

else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Stirile RPG

else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company

else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School

else if(level == 12) { PlayerInfo[para1][pChar] = 271; } //Sadoveanu Family

else if(level == 13) { PlayerInfo[para1][pChar] = 110; } //Duuianu Family

else if(level == 14) { PlayerInfo[para1][pChar] = 104; } //Capone Family

else if(level == 15) { PlayerInfo[para1][pChar] = 272; } //Corsicanu

else if(level == 16) { PlayerInfo[para1][pChar] = 23; } //Need For Speed

else if(level == 17) { PlayerInfo[para1][pChar] = 3; } //Blood Mafia

if(level == 0)

{

    gTeam[para1] = 3;

    PlayerInfo[para1][pTeam] = 3;

}

else if(level == 1 || level == 2 || level == 3)

{

    gTeam[para1] = 2;

    PlayerInfo[para1][pTeam] = 2;

}

else if(level == 4)

{

    gTeam[para1] = 1;

    PlayerInfo[para1][pTeam] = 1;

}

else

{

    gTeam[para1] = 15;

    PlayerInfo[para1][pTeam] = 15;

}

    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);

    if(level == 0)

    {

        PlayerInfo[para1][pRank] = 0;

    }

    else

    {

    PlayerInfo[para1][pRank] = 6;

}

}[/pawn]

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Buna seara Seven,

Dupa o analiza a cererii tale,am verificat comanda si pare toata in regula.O rezolvare mai rapida a problemei ar fi sa cauti in gamemode cu ajutorul functiei de cautare(CTRL+F) "  SetPlayerSkin(playerid, 7); ".

Arata-ne ce ai gasit,

Sper ca ti-am fost de folos,

[Pawn] / Onica Razvan

Pentru suport nu ezitati sa ma contactati printr-un mesaj privat sau un mesaj pe Y/M.(Scripting sa:mp/cs,ScripturiWEB,phpbb,mysql,ipb,photoshop,html)

Link to comment
Share on other sites

[pawn]                else if(strcmp(x_nr,"7",true) == 0)

                    {

                    SetPlayerSkin(playerid, 7);

                    PlayerInfo[playerid][pChar] = 7;

                    GivePlayerCash(playerid, -50);

                        SendClientMessage(playerid, COLOR_GRAD2, "» Felicitari, ti-ai schimbat Skin-ul. Te costa 50$.");

                        return 1;

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.