OnPlayerSpawn not working
#1

My public onplayerspawn not working, i not why.

Quote:

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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 1)//caminhoneiro
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1618.5684,-1789.4910,13.4916);
SetPlayerFacingAngle(playerid,192.6349);
SetPlayerColor(playerid, preto);
GivePlayerWeapon(playerid, 0,1 );
GivePlayerWeapon(playerid, 1,1 );
GivePlayerWeapon(playerid, 22, 200);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 2)//taxista
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 4)//motorista de onibus
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 5)//mototista particular
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 6)//mecanico
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 7)//piloto de aviao
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == //aposentado
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1120.7081,-1371.7609,13.9844);
SetPlayerFacingAngle(playerid,178.1093);
SetPlayerColor(playerid, roxo);
GivePlayerWeapon(playerid, 0,1 );
GivePlayerWeapon(playerid, 24, 200);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 9)//cientista
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2182.6646,-247.8289,40.7195);
SetPlayerFacingAngle(playerid,270.5980);
SetPlayerColor(playerid, roxoforte);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}


if(emprego[playerid] == 10)//REPORTER
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

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;
}

if(emprego[playerid] == 12)//medico
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 13)//seguranзa
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 14)//Seguranзa vip
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 15)//demsepregado
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 16)//juiz
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 17)//barmen
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2301.6960,-1638.9484,14.6341);
SetPlayerFacingAngle(playerid,206.1949);
SetPlayerColor(playerid, laranja);
GivePlayerWeapon(playerid, 0,1);
GivePlayerWeapon(playerid, 2,1);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 1)//bombeiro
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}


if(emprego[playerid] == 19)//cantor
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2245.4102,-1662.6287,15.4690);
SetPlayerFacingAngle(playerid,94.3907);
SetPlayerColor(playerid, rosa);
GivePlayerWeapon(playerid, 0,1);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 20)//vendendor de skin
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2245.4102,-1662.6287,15.4690);
SetPlayerFacingAngle(playerid,350.5025);
SetPlayerColor(playerid, laranja);
GivePlayerWeapon(playerid, 0,1);
GivePlayerWeapon(playerid, 23,300);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 21)//vendendor de habilitaзoes
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2030.2670,-98.6369,35.1641);
SetPlayerFacingAngle(playerid,350.7620);
SetPlayerColor(playerid,verde );
GivePlayerWeapon(playerid, 0,1);
GivePlayerWeapon(playerid, 23,300);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 22)//advogado
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}


if(emprego[playerid] == 33)//terrorista
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 34)//traficante
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 35)//matador de aluguel
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 37)//chefe da mafia
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 3)//cafetao
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}

if(emprego[playerid] == 40)//vendedor de armas
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
return 1;
}
}
return 1;
}

why? Someone arranges for me?
Reply
#2

try to use "else if" and remove returns.
Reply
#3

I tried with "else if" and removed returns, more is not the right.

Quote:

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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 1)//caminhoneiro
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1618.5684,-1789.4910,13.4916);
SetPlayerFacingAngle(playerid,192.6349);
SetPlayerColor(playerid, preto);
GivePlayerWeapon(playerid, 0,1 );
GivePlayerWeapon(playerid, 1,1 );
GivePlayerWeapon(playerid, 22, 200);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 2)//taxista
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 4)//motorista de onibus
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 5)//mototista particular
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 6)//mecanico
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 7)//piloto de aviao
{
SetPlayerInterior(playerid,0);
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 );
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == //aposentado
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1120.7081,-1371.7609,13.9844);
SetPlayerFacingAngle(playerid,178.1093);
SetPlayerColor(playerid, roxo);
GivePlayerWeapon(playerid, 0,1 );
GivePlayerWeapon(playerid, 24, 200);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 9)//cientista
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2182.6646,-247.8289,40.7195);
SetPlayerFacingAngle(playerid,270.5980);
SetPlayerColor(playerid, roxoforte);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}


else if(emprego[playerid] == 10)//REPORTER
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

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
}

else if(emprego[playerid] == 12)//medico
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 13)//seguranзa
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 14)//Seguranзa vip
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 15)//demsepregado
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 16)//juiz
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 17)//barmen
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2301.6960,-1638.9484,14.6341);
SetPlayerFacingAngle(playerid,206.1949);
SetPlayerColor(playerid, laranja);
GivePlayerWeapon(playerid, 0,1);
GivePlayerWeapon(playerid, 2,1);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 1)//bombeiro
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}


else if(emprego[playerid] == 19)//cantor
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2245.4102,-1662.6287,15.4690);
SetPlayerFacingAngle(playerid,94.3907);
SetPlayerColor(playerid, rosa);
GivePlayerWeapon(playerid, 0,1);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 20)//vendendor de skin
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2245.4102,-1662.6287,15.4690);
SetPlayerFacingAngle(playerid,350.5025);
SetPlayerColor(playerid, laranja);
GivePlayerWeapon(playerid, 0,1);
GivePlayerWeapon(playerid, 23,300);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 21)//vendendor de habilitaзoes
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2030.2670,-98.6369,35.1641);
SetPlayerFacingAngle(playerid,350.7620);
SetPlayerColor(playerid,verde );
GivePlayerWeapon(playerid, 0,1);
GivePlayerWeapon(playerid, 23,300);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 22)//advogado
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}


else if(emprego[playerid] == 33)//terrorista
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 34)//traficante
{
SetPlayerInterior(playerid,0);
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
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 37)//chefe da mafia
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 3)//cafetao
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}

else if(emprego[playerid] == 40)//vendedor de armas
{
SetPlayerInterior(playerid,0);
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);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
}
return 1;
}

not working, why?
Reply
#4

How well does not work?

You have the AddPlayerClass?
Reply
#5

Quote:

How well does not work?

the player is flying.
Quote:

You have the AddPlayerClass?

i no add.
Reply
#6

Adicione em OnGameModeInit lol
Reply
#7

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
#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
#9

OMG dont quote code each time,

What exacly don't work? you don't spawning or ?
Reply
#10

Quote:
Originally Posted by ikey07
Посмотреть сообщение
OMG dont quote code each time,

What exacly don't work? you don't spawning or ?
Thanks to everyone that helped me.
I add classplayer to ongamemode and ran.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)