[Ajudinha]Gang nгo spawna com arma
#1

Quando eu escolho a gang ela nasce sem as armas cуdigo :
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(!classid)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Vagos",2000,3);
    SetPlayerColor(playerid,0xFFF824FF);
    }
      else if(classid == 1)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Vagos",2000,3);
    SetPlayerColor(playerid,0xFFF824FF);
    }
       else if(classid == 2)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Vagos",2000,3);
    SetPlayerColor(playerid,0xFFF824FF);
    }
       else if(classid == 3)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Groovers",2000,3);
    SetPlayerColor(playerid,0x00BA19FF);
    }
        else if(classid == 4)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Grovers",2000,3);
    SetPlayerColor(playerid,0x00BA19FF);
    }
        else if(classid == 5)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Grovers",2000,3);
    SetPlayerColor(playerid,0x00BA19FF);
    }
        else if(classid == 6)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Groovers",2000,3);
    SetPlayerColor(playerid,0x00BA19FF);
    }
        else if(classid == 7)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Groovers",2000,3);
    SetPlayerColor(playerid,0x00BA19FF);

    }
        else if(classid == 8)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang das Putas",2000,3);
    SetPlayerColor(playerid,0xDF74E3FF);

    }
        else if(classid == 9)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang das Putas",2000,3);
    SetPlayerColor(playerid,0xDF74E3FF);
    }

        else if(classid == 10)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang das Putas",2000,3);
        SetPlayerColor(playerid,0xDF74E3FF);
    }
        else if(classid == 11)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Cops",2000,3);
        SetPlayerColor(playerid,0x1633F2FF);
    }
        else if(classid == 12)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Cops",2000,3);
        SetPlayerColor(playerid,0x1633F2FF);
    }
        else if(classid == 13)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Cops",2000,3);
        SetPlayerColor(playerid,0x1633F2FF);
    }
        else if(classid == 14)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Banhistas",2000,3);
        SetPlayerColor(playerid,0xF2D116FF);
    }
        else if(classid == 15)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Banhistas",2000,3);
        SetPlayerColor(playerid,0xF2D116FF);
    }
        else if(classid == 16)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Banhistas",2000,3);
        SetPlayerColor(playerid,0xF2D116FF);
    }
        else if(classid == 17)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Fear",2000,3);
        SetPlayerColor(playerid,0x736930FF);
    }
         else if(classid == 18)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Coveiros",2000,3);
        SetPlayerColor(playerid,0x301616FF);
    }
        else if(classid == 19)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Ballas",2000,3);
        SetPlayerColor(playerid,0x8314A8FF);
    }
        else if(classid == 20)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Ballas",2000,3);
        SetPlayerColor(playerid,0x8314A8FF);
    }
        else if(classid == 21)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Ballas",2000,3);
        SetPlayerColor(playerid,0x8314A8FF);
    }
        else if(classid == 22)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang do Exercito",2000,3);
        SetPlayerColor(playerid,0xBAB886FF);
    }
        else if(classid == 23)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Aztecas",2000,3);
        SetPlayerColor(playerid,0x1DD4F0FF);
    }
        else if(classid == 24)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Aztecas",2000,3);
        SetPlayerColor(playerid,0x1DD4F0FF);
    }
        else if(classid == 25)
    {
        GameTextForPlayer(playerid,"~n~~r~Gang dos Aztecas",2000,3);
        SetPlayerColor(playerid,0x1DD4F0FF);
    }
         return 1;
        }


Agora os kits de spawn :
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(Equipes[playerid] == 1 ) {
    GivePlayerWeapon(playerid, 26, 500);
    GivePlayerWeapon(playerid, 24, 500);
    GivePlayerWeapon(playerid, 4, 500);
    GivePlayerWeapon(playerid, 34, 500);
    }
    if(Equipes[playerid] == 2 ) {
    GivePlayerWeapon(playerid, 9, 500);
    GivePlayerWeapon(playerid, 18, 15);
    GivePlayerWeapon(playerid, 23, 500);
    GivePlayerWeapon(playerid, 26, 240);
    }
    if(Equipes[playerid] == 3 ) {
    GivePlayerWeapon(playerid, 27, 250);
    GivePlayerWeapon(playerid, 29, 450);
    GivePlayerWeapon(playerid, 30, 500);
    GivePlayerWeapon(playerid, 33, 50);
    }
    if(Equipes[playerid] == 4 ) {
    GivePlayerWeapon(playerid, 42, 355);
    GivePlayerWeapon(playerid, 31, 500);
    GivePlayerWeapon(playerid, 28, 250);
    GivePlayerWeapon(playerid, 34, 50);
    }
    if(Equipes[playerid] == 5 ) {
    GivePlayerWeapon(playerid, 22, 150);
    GivePlayerWeapon(playerid, 26, 200);
    GivePlayerWeapon(playerid, 32, 250);
    GivePlayerWeapon(playerid, 16, 25);
    }
    if(Equipes[playerid] == 6 ) {
    GivePlayerWeapon(playerid, 8, 150);
    GivePlayerWeapon(playerid, 22, 200);
    GivePlayerWeapon(playerid, 25, 250);
    GivePlayerWeapon(playerid, 30, 205);
    }
    if(Equipes[playerid] == 7 ) {
    GivePlayerWeapon(playerid, 29, 150);
    GivePlayerWeapon(playerid, 16, 200);
    GivePlayerWeapon(playerid, 34, 250);
    GivePlayerWeapon(playerid, 27, 255);
    }
    if(Equipes[playerid] == 8 ) {
    GivePlayerWeapon(playerid, 34, 150);
    GivePlayerWeapon(playerid, 25, 200);
    GivePlayerWeapon(playerid, 28, 250);
    GivePlayerWeapon(playerid, 24, 205);
    }
    if(Equipes[playerid] == 9 ) {
    GivePlayerWeapon(playerid, 17, 150);
    GivePlayerWeapon(playerid, 22, 200);
    GivePlayerWeapon(playerid, 26, 250);
    GivePlayerWeapon(playerid, 28, 255);
    }
    return 1;
}


eu ja fiz assim ex :

pawn Код:
else if(classid == 1)
    {
    GameTextForPlayer(playerid,"~n~~r~Gang dos Vagos",2000,3);
    SetPlayerColor(playerid,0xFFF824FF);
        if(Equipes[playerid] == 8 )
    }
mas nгo funciona da um help ai
Reply
#2

Coloca no OnPlayerSpawn
Reply
#3

Vocк deve setar o time para o player

if(!classid)
{
Equipes[playerid] = 1;

else if(classid == 3)
{
Equipes[playerid] = 2;

assim por diante.
Reply
#4

Uй pra que outro topico velho?
Reply
#5

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Coloca no OnPlayerSpawn
@edit
zbt funciono vlw =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)