29.12.2013, 20:47
Pronto chef!
Quote:
public SetPlayerSpawn(playerid) { if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid)) { if(sincronizando[playerid] == 1) { return true; } if(MedicBill[playerid] >= 2 && PlayerInfo[playerid][pJailed] == 0) { if(PlayerInfo[playerid][pVIP] < 1) { format(gstring, 128, "Hospital: Vocк foi recuperado e perdeu R$%d.", precomorte); SendClientMessage(playerid, TEAM_CYAN_COLOR, gstring); GivePlayerMoney(playerid, -precomorte); } SBizzInfo[12][sbTill] += precomorte; ExtortionSBiz(12, precomorte); ResetPlayerWeaponsEx(playerid); MedicBill[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; PlayerInfo[playerid][pDeaths] += 1; CofreOrg[4][Dinheiro] += precomorte; if(WantedPoints[playerid] > 0) { new wanted = WantedPoints[playerid]; new diecash = WantedPoints[playerid]*200; format(gstring, sizeof(gstring), "Vocк perdeu R$%d por morrer com Nivel De Procura: %d.", diecash, wanted); SendClientMessage(playerid, COLOR_YELLOW, gstring); GivePlayerMoney(playerid, - diecash); //WantedPoints[playerid] = 2; //SetPlayerWantedLevel(playerid, 2); } /*SetPlayerPos(playerid, 2003.2236,2286.2568,1011.9437); SetPlayerFacingAngle(playerid, 264.0441); SetPlayerCameraPos(playerid,2003.0568,2289.4766,10 13.1256); SetPlayerCameraLookAt(playerid,2003.2236,2286.2568 ,1011.9437); ApplyAnimation(playerid,"CRACK","crckdeth2",4.1,0, 1,1,1,1); Controle(playerid, 0); PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid); SetPlayerInterior(playerid, 1);*/ } SetPlayerHealth(playerid, 100.0); spawnado[playerid] = 1; MedicBill[playerid] ++; SetPlayerToTeamColor(playerid); if(PlayerInfo[playerid][pTut] == 0) { gNews[playerid] = 1; gFam[playerid] = 1; Controle(playerid, 0); RegistrationStep[playerid] = 1; ClearChatbox(playerid, ![]() //PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.00); SetPlayerCameraPos(playerid, 1427.597, -1751.993, 86.024); SetPlayerCameraLookAt(playerid, 1431.131, -1747.288, 79.93 ![]() SetPlayerPos(playerid, 1409.3607,-1713.2329,30.7422); SetPlayerInterior(playerid, 0); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); SetPlayerVirtualWorld(playerid,playerid+1); ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"S elecione seu Sexo:","{FFFFFF}Seja Bem Vindo(a)\n{00EE00}Brasil {FFD700}Play {00B2EE}Adventure{FFFFFF}.\n\n Visite Nosso Forum:\n www.{FFD700}rpgplayadventure{FFFFFF}.forumeiros.co m\n\nVocк й 'Homem' ou 'Mulher' ?\n ","Homem","Mulher"); PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0); } new rand; new House = PlayerInfo[playerid][pPHousekey]; if(PlayerInfo[playerid][pLuta] == 1) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW); } if(PlayerInfo[playerid][pLuta] == 2) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); } if(PlayerInfo[playerid][pLuta] == 3) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK); } if(PlayerInfo[playerid][pLuta] == 4) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD); } if(PlayerInfo[playerid][pLuta] == 5) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU); } if(PlayerInfo[playerid][pLuta] == 6) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); } if(PlayerInfo[playerid][pJailed] == 1) { SetPlayerInterior(playerid, 6); rand = random(sizeof(gPresoPmSpawns)); SetPlayerPos(playerid, gPresoPmSpawns[rand][0], gPresoPmSpawns[rand][1], gPresoPmSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, gPresoPmSpawns[rand][3]); SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Prisгo"); return true; } if(PlayerInfo[playerid][pJailed] == 2) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,268.5777,1857.9351,9.8133); SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811 return true; } if(PlayerInfo[playerid][pJailed] == 9) { SetPlayerInterior(playerid, 1 ![]() SetPlayerPos(playerid, 1302.519897,-1.787510,1001.028259);//SetPlayerPos(playerid,1175.6014,-1179.9524,87.0427); //SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811 SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Cadeia!"); return true; } if(PlayerInfo[playerid][pJailed] == 3) { SetPlayerInterior(playerid, 10); rand = random(sizeof(gPresoBopeSpawns)); SetPlayerPos(playerid, gPresoBopeSpawns[rand][0], gPresoBopeSpawns[rand][1], gPresoBopeSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, gPresoBopeSpawns[rand][3]); SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Prisгo"); return true; } if(PlayerInfo[playerid][pJailed] == 4) { SetPlayerInterior(playerid, 3); rand = random(sizeof(gPresoPcSpawns)); SetPlayerPos(playerid, gPresoPcSpawns[rand][0], gPresoPcSpawns[rand][1], gPresoPcSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, gPresoPcSpawns[rand][3]); SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Prisгo"); return true; } if(PlayerInfo[playerid][pJailed] == 5) { SetPlayerInterior(playerid, 5); rand = random(sizeof(gPresoPfSpawns)); SetPlayerPos(playerid, gPresoPfSpawns[rand][0], gPresoPfSpawns[rand][1], gPresoPfSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, gPresoPfSpawns[rand][3]); SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Prisгo"); return true; } if(PlayerInfo[playerid][pJailed] == 6) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,2695.6262,-2126.2393,13.548 ![]() SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Prisгo"); return true; } if(PlayerInfo[playerid][pJailed] == 7) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,-1293.2203,490.5885,11.1953); SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Prisгo"); return true; } if(PlayerInfo[playerid][pJailed] == ![]() { SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,264.4160,87.2363,1001.0391); SendClientMessage(playerid, COLOR_LIGHTRED, "Sentenзa incompleta,Vocк voltou para Prisгo"); return true; } if(House !=255 && PlayerInfo[playerid][pSpawn] == 1) { SetPlayerToTeamColor(playerid); SetPlayerInterior(playerid,HouseInfo[House][hInt]); SetPlayerVirtualWorld(playerid,HouseInfo[House][hWorld]); SetPlayerPos(playerid, HouseInfo[House][hExitx], HouseInfo[House][hExity],HouseInfo[House][hExitz]); // Warp the player PlayerInfo[playerid][pLocal] = House; PlayerInfo[playerid][pInt] = HouseInfo[House][hInt]; HouseEntered[playerid] = House; return true; } if (PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)// Taxistas Nascimento { SetPlayerPos(playerid, 1004.5120,-1431.9630,13.5469); SetPlayerFacingAngle(playerid,181.6931); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//Policia Militar Nascimento { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1529.4567,-1671.7179,6.218 ![]() PlayerInfo[playerid][pInt] = 0; SetPlayerWantedLevel(playerid, 0); return true; } if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//ROTA Nascimento { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 286.3543,-1513.8691,24.9289); PlayerInfo[playerid][pInt] = 0; SetPlayerWantedLevel(playerid, 0); return true; } if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito Nascimento { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -1346.9358,492.0078,11.2027); PlayerInfo[playerid][pInt] = 0; SetPlayerWantedLevel(playerid, 0); return true; } if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//MEDICO Nascimento { SetPlayerVirtualWorld(playerid,0); GivePlayerWeapon(playerid, 42, 9999); GivePlayerWeapon(playerid, 24, 99); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2041.3466,-1409.0089,17.1641); SetPlayerFacingAngle(playerid,181.3526); PlayerInfo[playerid][pInt] = 0; SetPlayerWantedLevel(playerid, 0); return true; } if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)//Aztecas Nascimento { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1671.1569,-2119.1445,13.5469); SetPlayerFacingAngle(playerid,181.4693); PlayerInfo[playerid][pInt] = 0; return true; } if (PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//Hamas Nascimento { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1102.4619,-299.2778,73.9922); SetPlayerFacingAngle(playerid,88.6093); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)//Prefeito Nascimento { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 354.8267,154.4102,1025.7964); PlayerInfo[playerid][pInt] = 0; SetPlayerArmour(playerid, 100); PlayerInfo[playerid][pLocal] = 241; SetPlayerWantedLevel(playerid, 0); return true; } if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == ![]() { SetPlayerPos(playerid, 970.0739,-1520.7496,13.5506); SetPlayerFacingAngle(playerid,0.2909); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if (PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9) //Repуrters Nascimento { SetPlayerPos(playerid, 735.3049,-1350.8284,13.5000); SetPlayerVirtualWorld(playerid,0); GivePlayerWeapon(playerid, 43, 120); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14) //Groove Nascimento { GivePlayerWeapon(playerid, 24, 70); GivePlayerWeapon(playerid, 29, 120); SetPlayerPos(playerid, 2516.1411,-1675.4065,13.9113); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) //GI Nascimento { SetPlayerPos(playerid, 414.5280,2531.5229,19.164 ![]() SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16) //Policia Civil Nascimento { SetPlayerPos(playerid, 229.6951,177.7354,1003.0313); SetPlayerFacingAngle(playerid, 87.4229); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,3); PlayerInfo[playerid][pInt] = 0; SetPlayerWantedLevel(playerid, 0); return true; } if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17) //Ballas Membros Nascimento { SetPlayerPos(playerid, 1150.5472,-1180.6296,32.0275); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if (PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 1 ![]() { SetPlayerPos(playerid, 2808.3562,-1176.4606,25.3687); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if (PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13) //Mбfia Yakuza Nascimento { SetPlayerPos(playerid, 679.7172,-1275.9229,13.5931); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if (PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12) //Mбfia Cosa Nostra Nascimento { SetPlayerPos(playerid, 309.4009,-1161.1469,80.9141); SetPlayerFacingAngle(playerid,128.7879); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if (PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)//Policia Federal Nascimento { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -49.8735,-274.2333,5.4297); SetPlayerFacingAngle(playerid,179.7453); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerWantedLevel(playerid, 0); return true; } if (PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19) //Bloodz { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2151.3245,-1807.9917,13.5465); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20) //Sons of Anarchy Nascimento { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 709.8550,-438.7958,16.3359); SetPlayerFacingAngle(playerid,174.7669); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21) //Drifters Nascimento { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2793.4021,-1626.3422,10.9219); SetPlayerVirtualWorld(playerid,0); SetPlayerFacingAngle(playerid,352.1631); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22) //Triads Nascimento { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -1692.5481,1373.1191,7.1797); SetPlayerVirtualWorld(playerid,0); SetPlayerFacingAngle(playerid,4.3629); PlayerInfo[playerid][pInt] = 0; return true; } if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23) //FARC Nascimento { SetPlayerPos(playerid, 1653.5564,-1840.5531,13.5456); SetPlayerFacingAngle(playerid,179.8326); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } if ((gTeam[playerid]) == 1) { SetPlayerToTeamColor(playerid); rand = random(sizeof(gMedPlayerSpawns)); SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, 270.0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } else { SetPlayerPos(playerid,1613.9719,-2270.1665,13.5156); SetPlayerFacingAngle(playerid,270.0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return true; } } //return true; //} //} return true; } |