OnPlayerSpawn not working
#8

also did not work

Quote:
Originally Posted by ikey07
Посмотреть сообщение
You had emprego[playerid] == 1 twice and many small things, Here you go:
pawn Код:
public OnPlayerSpawn(playerid)
{
    PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
    GangZoneShowForPlayer(playerid, favela, 0xF50A1096);
    if(jailed[playerid] == 1)
    {
        SetPlayerInterior(playerid,6);
        SetPlayerPos(playerid,263.4707,77.5040,1001.0391);
        SetPlayerFacingAngle(playerid,266.3124);
        ResetPlayerWeapons(playerid);
        GameTextForPlayer(playerid,"~y~P~b~R~y~E~b~S~y~O", 0900,0);
        return 1;
    }
    SetPlayerInterior(playerid,0);
    if(emprego[playerid] == 1)//caminhoneiro
    {
        SetPlayerPos(playerid,1618.5684,-1789.4910,13.4916);
        SetPlayerFacingAngle(playerid,192.6349);
        GivePlayerWeapon(playerid, 0,1 );
        GivePlayerWeapon(playerid, 1,1 );
        GivePlayerWeapon(playerid, 22, 200);
        SetPlayerColor(playerid, preto);
    }
    else if(emprego[playerid] == 2)//taxista
    {
        SetPlayerPos(playerid,2337.9343,-1252.3170,22.5000);
        SetPlayerFacingAngle(playerid,6.864);
        SetPlayerColor(playerid, amarelo);
        GivePlayerWeapon(playerid, 0,1 );
        GivePlayerWeapon(playerid, 6,1 );
        GivePlayerWeapon(playerid, 22,200 );
    }
    else if(emprego[playerid] == 4)//motorista de onibus
    {
        SetPlayerPos(playerid,1743.5497,-1862.4183,13.5763);
        SetPlayerFacingAngle(playerid,3.2172);
        SetPlayerColor(playerid,cinza);
        GivePlayerWeapon(playerid, 0,1 );
        GivePlayerWeapon(playerid, 1,1 );
        GivePlayerWeapon(playerid, 22,200 );
    }
    else if(emprego[playerid] == 5)//mototista particular
    {
        SetPlayerPos(playerid,2021.2522,1344.0804,10.8203) ;
        SetPlayerFacingAngle(playerid,272.0290);
        SetPlayerColor(playerid, particular1);
        GivePlayerWeapon(playerid, 0,1 );
        GivePlayerWeapon(playerid, 5,1 );
        GivePlayerWeapon(playerid, 32,500 );
        GivePlayerWeapon(playerid, 30,300 );
    }
    else if(emprego[playerid] == 6)//mecanico
    {
        SetPlayerPos(playerid,2641.9697,-2002.7960,13.5547);
        SetPlayerFacingAngle(playerid,271.9592);
        SetPlayerColor(playerid, marron);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 22,200);
        GivePlayerWeapon(playerid, 41,300);
    }
    else if(emprego[playerid] == 7)//piloto de aviao
    {
        SetPlayerPos(playerid,1599.4408,1274.3834,10.8125) ;
        SetPlayerFacingAngle(playerid,45.8950);
        SetPlayerColor(playerid, azulclaro);
        GivePlayerWeapon(playerid, 0,1 );
        GivePlayerWeapon(playerid, 2,1 );
        GivePlayerWeapon(playerid, 23,500 );
        GivePlayerWeapon(playerid, 30,300 );
    }
    else if(emprego[playerid] == 8)//aposentado
    {
        SetPlayerPos(playerid,1120.7081,-1371.7609,13.9844);
        SetPlayerFacingAngle(playerid,178.1093);
        SetPlayerColor(playerid, roxo);
        GivePlayerWeapon(playerid, 0,1 );
        GivePlayerWeapon(playerid, 24, 200);
    }
    else if(emprego[playerid] == 9)//cientista
    {
        SetPlayerPos(playerid,-2182.6646,-247.8289,40.7195);
        SetPlayerFacingAngle(playerid,270.5980);
        SetPlayerColor(playerid, roxoforte);
    }
    else if(emprego[playerid] == 10)//REPORTER
    {
        SetPlayerPos(playerid,748.4598,-1344.8527,13.5176);
        SetPlayerFacingAngle(playerid,261.8957);
        SetPlayerColor(playerid,azulclaro );
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 24,200);
    }
    else if(emprego[playerid] == 11)//bancario
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,1459.1516,-1012.5599,26.843);
        SetPlayerFacingAngle(playerid,195.4501);
        SetPlayerColor(playerid,verde);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 15,1);
        PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
        return 1;
    }
    else if(emprego[playerid] == 12)//medico
    {
        SetPlayerPos(playerid,1172.5354,-1327.5032,15.4041);
        SetPlayerFacingAngle(playerid,309.0149);
        SetPlayerColor(playerid,laranja);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 7,1);
        GivePlayerWeapon(playerid, 42,200);
    }
    else if(emprego[playerid] == 13)//seguranc,a
    {
        SetPlayerPos(playerid,828.9031,-2090.0850,13.3134);
        SetPlayerFacingAngle(playerid,353.5544);
        SetPlayerColor(playerid, vermelho);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 23,250);
        GivePlayerWeapon(playerid, 25,250);
        GivePlayerWeapon(playerid, 31,250);
        GivePlayerWeapon(playerid, 34,250);
    }
    else if(emprego[playerid] == 14)//Seguranc,a vip
    {
        SetPlayerPos(playerid,-3086.1738,1105.6281,19.0219);
        SetPlayerFacingAngle(playerid,315.8850);
        SetPlayerColor(playerid,vermelho);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 23,300);
        GivePlayerWeapon(playerid, 26,350);
        GivePlayerWeapon(playerid, 28,400);
        GivePlayerWeapon(playerid, 31,300);
        GivePlayerWeapon(playerid, 34,300);
    }
    else if(emprego[playerid] == 15)//demsepregado
    {
        SetPlayerPos(playerid,1476.1182,-1663.8429,14.5532);
        SetPlayerFacingAngle(playerid,184.5434);
        SetPlayerColor(playerid,rosa);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 6,1);
        GivePlayerWeapon(playerid, 41,1);
    }
    else if(emprego[playerid] == 16)//juiz
    {
        SetPlayerPos(playerid,1481.5131,-1764.9797,18.795);
        SetPlayerFacingAngle(playerid,2.7900);
        SetPlayerColor(playerid, verde);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 23,200);
        GivePlayerWeapon(playerid, 26,00);
        GivePlayerWeapon(playerid, 32,50);
        GivePlayerWeapon(playerid, 31,300);
        GivePlayerWeapon(playerid, 34,350);
    }
    else if(emprego[playerid] == 17)//barmen
    {
        SetPlayerPos(playerid,2301.6960,-1638.9484,14.6341);
        SetPlayerFacingAngle(playerid,206.1949);
        SetPlayerColor(playerid, laranja);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 2,1);
    }
    else if(emprego[playerid] == 18)//bombeiro
    {
        SetPlayerPos(playerid,-2068.5784,51.6876,28.5812);
        SetPlayerFacingAngle(playerid,309.4354);
        SetPlayerColor(playerid, vermelho);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 42,300);
        GivePlayerWeapon(playerid, 18,10);
    }
    else if(emprego[playerid] == 19)//cantor
    {
        SetPlayerPos(playerid,2245.4102,-1662.6287,15.4690);
        SetPlayerFacingAngle(playerid,94.3907);
        SetPlayerColor(playerid, rosa);
        GivePlayerWeapon(playerid, 0,1);
    }
    else if(emprego[playerid] == 20)//vendendor de skin
    {
        SetPlayerPos(playerid,2245.4102,-1662.6287,15.4690);
        SetPlayerFacingAngle(playerid,350.5025);
        SetPlayerColor(playerid, laranja);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 23,300);
    }
    else if(emprego[playerid] == 21)//vendendor de habilitac,oes
    {
        SetPlayerPos(playerid,-2030.2670,-98.6369,35.1641);
        SetPlayerFacingAngle(playerid,350.7620);
        SetPlayerColor(playerid,verde );
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 23,300);
    }
    else if(emprego[playerid] == 22)//advogado
    {
        SetPlayerPos(playerid,1475.7471,-1764.7667,18.795);
        SetPlayerFacingAngle(playerid,18.795);
        SetPlayerColor(playerid, vinho);
        GivePlayerWeapon(playerid, 0,1 );
        GivePlayerWeapon(playerid, 3,1 );
        GivePlayerWeapon(playerid, 22, 200);
    }
    else if(emprego[playerid] == 33)//terrorista
    {
        SetPlayerPos(playerid,2512.9038,-1673.1594,13.5110);
        SetPlayerFacingAngle(playerid,74.1191);
        SetPlayerColor(playerid, vermelhoescuro);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 9,1);
        GivePlayerWeapon(playerid, 23,150);
        GivePlayerWeapon(playerid, 26,200);
        GivePlayerWeapon(playerid, 32,150);
        GivePlayerWeapon(playerid, 30,250);
        GivePlayerWeapon(playerid, 33,200);
    }
    else if(emprego[playerid] == 34)//traficante
    {
        SetPlayerPos(playerid,-2168.6877,-261.7837,36.5156);
        SetPlayerFacingAngle(playerid,285.4919);
        SetPlayerColor(playerid, beje);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 23,100);
        GivePlayerWeapon(playerid, 32,350);
        GivePlayerWeapon(playerid, 30,200);
    }
    else if(emprego[playerid] == 35)//matador de aluguel
    {
        SetPlayerPos(playerid,2512.9038,-1673.1594,13.5110);
        SetPlayerFacingAngle(playerid,74.1191);
        SetPlayerColor(playerid, beje);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 22,220);
        GivePlayerWeapon(playerid, 25,210);
        GivePlayerWeapon(playerid, 30,200);
    }
    else if(emprego[playerid] == 37)//chefe da mafia
    {
        SetPlayerPos(playerid,2512.9038,-1673.1594,13.5110);
        SetPlayerFacingAngle(playerid,74.1191);
        SetPlayerColor(playerid, beje);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 27,200);
        GivePlayerWeapon(playerid, 28,250);
        GivePlayerWeapon(playerid, 30,200);
        GivePlayerWeapon(playerid, 34,240);
    }
    else if(emprego[playerid] == 38)//cafetao
    {
        SetPlayerPos(playerid,2512.9038,-1673.1594,13.5110);
        SetPlayerFacingAngle(playerid,74.1191);
        SetPlayerColor(playerid, rosa);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 32,350);
    }
    else if(emprego[playerid] == 40)//vendedor de armas
    {
        SetPlayerPos(playerid,2499.1206,-1684.7633,13.4269);
        SetPlayerFacingAngle(playerid,18.3870);
        SetPlayerColor(playerid, cinza);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 0,1);
        GivePlayerWeapon(playerid, 1,1);
        GivePlayerWeapon(playerid, 32,350);
    }
    return 1;
}
This need to be working.
Reply


Messages In This Thread
OnPlayerSpawn not working - by rafa3dify - 29.07.2010, 15:44
Re: OnPlayerSpawn not working - by GaGlets(R) - 29.07.2010, 15:46
Re: OnPlayerSpawn not working - by rafa3dify - 29.07.2010, 18:53
Re: OnPlayerSpawn not working - by ipsBruno - 29.07.2010, 19:05
Re: OnPlayerSpawn not working - by rafa3dify - 29.07.2010, 19:07
Re: OnPlayerSpawn not working - by ipsBruno - 29.07.2010, 19:07
Re: OnPlayerSpawn not working - by ikey07 - 29.07.2010, 19:08
Re: OnPlayerSpawn not working - by rafa3dify - 29.07.2010, 19:14
Re: OnPlayerSpawn not working - by ikey07 - 29.07.2010, 19:16
Re: OnPlayerSpawn not working - by rafa3dify - 29.07.2010, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)