18.07.2010, 20:51
Ela nao funciona, nao sei porque, ela nao da spaw no player, ele fica voando.Ela abaixo como esta:
Porque? Alguem mim da uma luz? por favor
Quote:
public OnPlayerSpawn(playerid) { if(jailed[playerid] == 1){ SetPlayerInterior(playerid,6); SetPlayerPos(playerid,263.4707,77.5040,1001.0391); SetPlayerFacingAngle(playerid,266.3124); PlayerPlaySound(playerid,1082,198.3797,160.8905,10 03.0300); 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 { 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; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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); PlayerPlaySound(playerid,1184,2418.3506,1123.9360, 10.8203);//Music Off return 1; } 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 return 1; } 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 return 1; } 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 return 1; } 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; } return 0; } |