01.09.2010, 21:44
Meu onplayerspaw nгo funciona, ele ta certinho, mais ele nao da spawn, ele so dar spawn no addonplayerclasse. Alguem sabe o que posso fazer?
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, bottomblack);
TextDrawHideForPlayer(playerid, topblack);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
GangZoneShowForPlayer(playerid, favela2, vermelho);
GangZoneFlashForPlayer(playerid,favela2,amarelo);
TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);
SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," ");
TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
gettime(hour12, minute12);
SetPlayerTime(playerid, hour12, minute12);
TextDrawShowForPlayer(playerid, ViewZeit);
TextDrawShowForPlayer(playerid, ViewDatum);
if(jailed[playerid] == 1)//tava preso
{
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);
}
else if(lossantos[playerid] == 2)//moreu na favela
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1982.0358,-1177.9456,20.0234);
SetPlayerFacingAngle(playerid,262.0986);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 1)//moreu em los santos
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1172.5354,-1327.5032,15.4041);
SetPlayerFacingAngle(playerid,309.0149);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 3)//moreu perto do aeroporto velho
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-1513.9719,2527.8230,55.7311);
SetPlayerFacingAngle(playerid,6.8425);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 4)//moreu perto do aeroporto velho2
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-1513.9719,2527.8230,55.7311);
SetPlayerFacingAngle(playerid,6.8425);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 5)//moreu san fierro
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-2671.6824,622.4808,14.4531);
SetPlayerFacingAngle(playerid,237.9669);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 6)//moreu perto do monte
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-2191.5720,-2297.2112,30.6250);
SetPlayerFacingAngle(playerid,9.5286);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 7)//moreu em fortcarson
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-316.6957,1054.9595,19.7422);
SetPlayerFacingAngle(playerid,321.8733);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 8)//moreu em las aventura
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1577.4352,1770.8547,10.6769);
SetPlayerFacingAngle(playerid,108.5632);
SetPlayerInterior(playerid,0);
}
else 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);
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
else if(emprego[playerid] == 9)//cientista
{
SetPlayerPos(playerid,-2182.6646,-247.8289,40.7195);
SetPlayerFacingAngle(playerid,270.5980);
SetPlayerColor(playerid, roxoforte);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,2499.1206,-1684.7633,13.4269);//Coloca POS Ceta
TextDrawHideForPlayer(playerid, bottomblack);
TextDrawHideForPlayer(playerid, topblack);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
GangZoneShowForPlayer(playerid, favela2, vermelho);
GangZoneFlashForPlayer(playerid,favela2,amarelo);
TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);
SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," ");
TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
gettime(hour12, minute12);
SetPlayerTime(playerid, hour12, minute12);
TextDrawShowForPlayer(playerid, ViewZeit);
TextDrawShowForPlayer(playerid, ViewDatum);
if(jailed[playerid] == 1)//tava preso
{
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);
}
else if(lossantos[playerid] == 2)//moreu na favela
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1982.0358,-1177.9456,20.0234);
SetPlayerFacingAngle(playerid,262.0986);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 1)//moreu em los santos
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1172.5354,-1327.5032,15.4041);
SetPlayerFacingAngle(playerid,309.0149);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 3)//moreu perto do aeroporto velho
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-1513.9719,2527.8230,55.7311);
SetPlayerFacingAngle(playerid,6.8425);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 4)//moreu perto do aeroporto velho2
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-1513.9719,2527.8230,55.7311);
SetPlayerFacingAngle(playerid,6.8425);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 5)//moreu san fierro
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-2671.6824,622.4808,14.4531);
SetPlayerFacingAngle(playerid,237.9669);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 6)//moreu perto do monte
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-2191.5720,-2297.2112,30.6250);
SetPlayerFacingAngle(playerid,9.5286);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 7)//moreu em fortcarson
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-316.6957,1054.9595,19.7422);
SetPlayerFacingAngle(playerid,321.8733);
SetPlayerInterior(playerid,0);
}
else if(lossantos[playerid] == 8)//moreu em las aventura
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1577.4352,1770.8547,10.6769);
SetPlayerFacingAngle(playerid,108.5632);
SetPlayerInterior(playerid,0);
}
else 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);
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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 );
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
else if(emprego[playerid] == 9)//cientista
{
SetPlayerPos(playerid,-2182.6646,-247.8289,40.7195);
SetPlayerFacingAngle(playerid,270.5980);
SetPlayerColor(playerid, roxoforte);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
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);
SetPlayerInterior(playerid,0);
}
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, bottomblack);
TextDrawHideForPlayer(playerid, topblack);
PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off
GangZoneShowForPlayer(playerid, favela2, vermelho);
GangZoneFlashForPlayer(playerid,favela2,amarelo);
TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);
SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," ");
TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
gettime(hour12, minute12);
SetPlayerTime(playerid, hour12, minute12);
TextDrawShowForPlayer(playerid, ViewZeit);
TextDrawShowForPlayer(playerid, ViewDatum);
if(jailed[playerid] == 1)//tava preso
{
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;
}
if(lossantos[playerid] == 1)//moreu na favela
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1982.0358,-1177.9456,20.0234);
SetPlayerFacingAngle(playerid,262.0986);
SetPlayerInterior(playerid,0);
return 1;
}
if(lossantos[playerid] == 2)//moreu em los santos
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,1172.5354,-1327.5032,15.4041);
SetPlayerFacingAngle(playerid,309.0149);
SetPlayerInterior(playerid,0);
return 1;
}
if(lossantos[playerid] == 3)//moreu perto do aeroporto velho
{
lossantos[playerid] = 0;
SetPlayerPos(playerid,-1513.9719,2527.8230,55.7311);
SetPlayerFacingAngle(playerid,6.8425);
SetPlayerInterior(playerid,0);
return 1;
}