Jump to content
  • 0

Problema


AlexVs

Question

Am codul acesta

[pawn]if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)

{

    MedicBill[playerid] = 0;

    new rand = random(sizeof(CIV));

SendClientMessage(playerid, COLOR_LIGHTRED, "Tu nu esti un Lider , Tu vei primi skin de Civil !");

PlayerInfo[playerid][pTeam] = 3;

gTeam[playerid] = 3;

SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);

PlayerInfo[playerid][pModel] = CIV[rand];

SpawnPlayer(playerid);

}[/pawn]

Si l-am inlocuit cu acesta

[pawn]if(gTeam[playerid] == 15 && PlayerInfo[playerid][pLeader] < 1)

{

    MedicBill[playerid] = 0;

    new rand = random(sizeof(CIV));

SendClientMessage(playerid, COLOR_LIGHTRED, "Tu nu esti un Lider , Tu vei primi skin de Civil !");

PlayerInfo[playerid][pTeam] = 3;

gTeam[playerid] = 3;

SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);

PlayerInfo[playerid][pModel] = CIV[rand];

SpawnPlayer(playerid);

}[/pawn]

Primu merge adica : Nu te lasa sa iei primele 11 skinuri de leader :)

Al doilea nu merge : Te lasa sa iei toate skinurile inclusiv alea de Leader

Ceva?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Problema este ca :

Daca schimb 11 din codul acesta

[pawn]if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)[/pawn]

Cu 15 . Nu functioneaza 15 reprezentand numarul de factiuni

Daca ramane pe 11 Functioneaza ( Nu ii lasa pe civili/membri fact sa ia skin lider )

Daca pun 15 Nu fuctioneaza(Ii lasa pe civili/membri fact sa ia skin lider )

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.