13.06.2014, 17:05
Aqui Amigo nгo esqueзa de colocar as cords das orgs e o nome da org
Код:
public OnPlayerSpawn(playerid) { TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); TextDrawHideForPlayer(playerid, Textdraw2); TextDrawHideForPlayer(playerid, Textdraw3); TextDrawHideForPlayer(playerid, Textdraw4); TextDrawHideForPlayer(playerid, Textdraw5); TextDrawHideForPlayer(playerid, Textdraw6); TextDrawHideForPlayer(playerid, Textdraw7); TextDrawHideForPlayer(playerid, Textdraw8); TextDrawHideForPlayer(playerid, Textdraw9); if(Player[playerid][FirstSpawn] == true) { Player[playerid][FirstSpawn] = false; if(gPlayerLogged[playerid]) { new lol[256]; format(lol,256,"/RPG/bans/%s.ini", Player[playerid][pName]); if(strcmp(Player[playerid][pName],"Max_BFH",true)==0) goto Join; if(strcmp(Player[playerid][pName],"Boob_BFH",true)==0) goto Join; if(dini_Exists(lol)) { new string[128], banfile[256]; new admin[52], data[52], tempban[128]; format(admin,52,"%s", dini_Get(lol,"AdminName")); format(data,52,"%s", dini_Get(lol,"Data")); new tick = dini_Int(lol,"BanTime"); if(tick > 0) { if(tick < GetTickCount()) format(tempban,128,"|| Ban temporбrio - Acaba em %s", Convert(tick-GetTickCount())); else { SendClientMessage(playerid, COLOR_RED,"[ADMIN BOT] Seu ban temporбrio acabou."); dini_Remove(lol); goto Join; } } SendClientMessage(playerid, COLOR_BARRAS,"============================================================="); format(string,128,"- Esse nick '%s' foi banido pelo '%s' em '%s'", Player[playerid][pName], admin, data); SendClientMessage(playerid, COLOR_WHITE, string); format(string,128,"- Motivo: '%s' %s", dini_Get(lol, "Motivo"), tempban); SendClientMessage(playerid, COLOR_WHITE, string); SendClientMessage(playerid, COLOR_ORANGE,"Visite a pбgina 'http://www.blhgames.tk/', leia as regras e crie seu tуpico com esta imagem. (F8 para capturб-la)"); SendClientMessage(playerid, COLOR_BARRAS,"============================================================="); banfile = GetBannedFile(playerid); if(!dini_Exists(banfile) && tick == 0) { new hour, minute, second, day, month, year; gettime(hour, minute, second); getdate(year, month, day); dini_Create(banfile); dini_Set(banfile,"PlayerName", Player[playerid][pName]); dini_Set(banfile,"AdminName", "Admin Bot"); dini_Set(banfile,"Motivo", "Evasгo de Ban (Old)"); format(string, sizeof(string), "%02d/%02d аs %02d:%02d", day, month, hour, minute); dini_Set(banfile,"Data", string); } return Kick(playerid); } } Join: TextDrawShowForPlayer(playerid, MoneyTD); TextDrawShowForPlayer(playerid, ServerLogo2); TextDrawShowForPlayer(playerid, ServerLogo1); } PlaySoundForPlayer(playerid, 1057); StopMusic(playerid); if(IsPlayerNPC(playerid)) //Checa se o jogador й um NPC. { SetPlayerSkin(playerid, 181); return 1; } nowh[playerid] = 0; Incasa[playerid] = Player[playerid][pPhousekey]; SetTimerEx("TurfsDebug",3000, false, "i", playerid); InitLockDoors(playerid); SetPlayerHealth(playerid, 100); STDPlayer[playerid] = 0; gTeam[playerid] = Player[playerid][pTeam]; //Set the Team if(Player[playerid][pAdmin] > 0) SetPlayerChatBubble(playerid, AccountName(playerid), COLOR_YELLOW, 50.0, 14400000); if(gTeam[playerid] == 4) //medic / criminal reset team gTeam[playerid] = 3; if(gTeam[playerid] == 11 && Player[playerid][pLeader] < 1) { new rand = random(sizeof(CIV)); Player[playerid][pTeam] = 3; gTeam[playerid] = 3; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); Player[playerid][pModel] = CIV[rand]; SpawnPlayer(playerid); } if(gTeam[playerid] == 5) { if(Player[playerid][pMember] < 1) { new rand = random(sizeof(CIV)); Player[playerid][pTeam] = 3; gTeam[playerid] = 3; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); Player[playerid][pModel] = CIV[rand]; SpawnPlayer(playerid); } } if(gTeam[playerid] == 10) { if(Player[playerid][pMember] != 8) { new rand = random(sizeof(CIV)); Player[playerid][pTeam] = 3; gTeam[playerid] = 3; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); Player[playerid][pModel] = CIV[rand]; SpawnPlayer(playerid); } } if(gTeam[playerid] == 2 && Player[playerid][pMember] > 3) { new rand = random(sizeof(CIV)); Player[playerid][pTeam] = 3; gTeam[playerid] = 3; Player[playerid][pModel] = CIV[rand]; SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); SpawnPlayer(playerid); } if(gTeam[playerid] == 3) { if(Player[playerid][pMember] > 0 || Player[playerid][pLeader] > 0) { Hospital[playerid] = 0; new model = PlayerInfo[playerid][pChar]; if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 14; gTeam[playerid] = 14; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 18) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 19) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 20) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 21) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 21; gTeam[playerid] = 21; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pMember] == 22) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 22; gTeam[playerid] = 22; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 18) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 19) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 20) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 21) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org else if(PlayerInfo[playerid][pLeader] == 22) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }//mude para o spawn de sua org } } if(Player[playerid][pChar] > 0){ SetPlayerSkin(playerid, Player[playerid][pModel]); } else { SetPlayerSkin(playerid, Player[playerid][pModel]); } SetPlayerWeapons(playerid); SetPlayerSpawn(playerid); SetPlayerToTeamColor(playerid); return 1; }