08.06.2014, 04:44
Man meu Hospital esta bugando ,Quando o cara й de uma org e ele passa pelo hospital,Ele spawna no spawn civil ,nгo em sua HQ
Eu jб nгo sei mais oque fazer Darei mas +rep pra quem me ajudar.
Aqui vгo as publics
Public setmorto
public onplayerdeath
public onplayerspawn
Eu jб nгo sei mais oque fazer Darei mas +rep pra quem me ajudar.
Aqui vгo as publics
Public setmorto
pawn Код:
forward SetMorto(playerid);
public SetMorto(playerid)
{
if(GetPVarInt(playerid, "Morto") != 2) return 0;
if(GetPVarInt(playerid, "Hospital")) return 0;
if(Player[playerid][pJailed] == 0)
{
SetPVarInt(playerid, "Hospital", 1);
NoHospital[playerid] = 30;
SetPlayerFacingAngle(playerid, 90);
new rand = random(sizeof(MacaSpawns));
ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
SetPlayerCameraPos(playerid, MacaSpawns[rand][0]+3, MacaSpawns[rand][1]-5, MacaSpawns[rand][2]+3);
SetPlayerCameraLookAt(playerid, MacaSpawns[rand][0], MacaSpawns[rand][1], MacaSpawns[rand][2]);
if(Player[playerid][pPlano])
{
SendClientMessage(playerid, 0xFF9680FF, "[MЙDICO] Vocк estava ferido e foi levado ao hospital. Custo pago pelo plano de saъde.");
}
else
{
SendClientMessage(playerid, 0xFF9680FF, "[MЙDICO] Vocк estava ferido e foi levado ao hospital. Os custos ficaram em R$500,00");
GivePlayerGP(playerid,-500);
}
}
DeletePVar(playerid, "Morto");
return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
static
strimger[128],
Float:zxyPos[3];
SetPVarInt(playerid, "Morto", 2);
if(GetPlayerState(killerid) == 2 && !IsPlayerInGuerra(playerid) && !IsPlayerInUsina(playerid) && !noteste[killerid])
{
GetPlayerPos(killerid, zxyPos[0], zxyPos[1], zxyPos[2]);
if (IsPlayerInRangeOfPoint(playerid, 10.0, zxyPos[0], zxyPos[1], zxyPos[2]))
{
dbfez[killerid] = true;
dbsofreu[playerid] = true;
SendClientMessage(killerid, COLOR_YELLOW, "Vocк infringiu uma lei do servidor cometendo DRIVE-BY !");
SendClientMessage(playerid, COLOR_YELLOW, "Este DB foi proposital? Caso tenha sido digite /db ");
format(strimger, sizeof(strimger), "-OperServ- %s (%i) fez drive-by em %s (%i)", killerid,ReturnPlayer(killerid),ReturnPlayer(playerid), playerid);
SendClientMessageToAll(COLOR_REDEVAS, strimger);
}
}
if(SpawnTime[playerid] < 5)
{
Player[playerid][pMorto] = 1;
Player[killerid][pKills] ++;
Player[playerid][pDeaths] ++;
}
GetPlayerPos(playerid, MortePos[playerid][0], MortePos[playerid][1], MortePos[playerid][2]);
MorteInt[playerid] = GetPlayerInterior(playerid);
if(Player[playerid][FirstSpawn] == true)
return 1;
WarCode_PlayerDeath(playerid, killerid, reason);
new string[128];
if(PlayerTied[playerid] > 0)
{
format(string, sizeof(string), "BOPE fracassou no sequestro de %s. Refйm morto.",ReturnPlayer(playerid));
SendClientMessageToAll(COLOR_OOC, string);
PlayerTied[playerid] = 0;
}
for(new x=0; x<HighestID; x++)
if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && Player[x][gSpectateID] == playerid)
AdvanceSpectate(x);
//PAINT BALL
if(PlayerPaintballing[playerid] != 0)
{
new killer[MAX_PLAYER_NAME];
PlayerPaintballKills[killerid] ++;
format(string, sizeof(string), "Vocк matou %d pessoas nesta partida.",PlayerPaintballKills[killerid]);
SendClientMessage(killerid, COLOR_YELLOW, string);
if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
{
PaintballWinner = killerid;
PaintballWinnerKills = PlayerPaintballKills[killerid];
GetPlayerName(killerid, killer, sizeof(killer));
for(new i = 0; i <= HighestID; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerPaintballing[i] != 0)
{
format(string, sizeof(string), "%s estб liderando o paintball com %d pontos.",ReturnPlayer(killerid),PaintballWinnerKills);
SendClientMessage(i, COLOR_YELLOW, string);
return 1;
}
}
}
}
return 1;
}
//MATAR EM LOCAL PROIBIDO
if(PlayerToPoint(40.0, killerid, 245.9469,75.8629,1003.6406) || PlayerToPoint(40.0, killerid, 2003.3408,2288.0269,1011.1256))
{
new penaantiga = Player[killerid][pJailTime]/60;
new penanova = penaantiga+20;
if(Player[killerid][pJailed] == 1 || Player[killerid][pJailed] == 2 && !IsACop(killerid))
Bangu(killerid,playerid,penanova,"Local Proibido");
else if(!IsACop(killerid))
Bangu(killerid,playerid,20,"Local Proibido");
return 1;
}
//empresa
if(GetPlayerGP(playerid) > 99 && Player[playerid][pLevel] > 2)
{
SBizzInfo[14][sbTill] += 75;
ExtortionSBiz(14, 75);
}
if(SBizzInfo[14][sbProducts]>0)
SBizzInfo[14][sbProducts]--;
if(Player[playerid][pPlano] > 0)
Player[playerid][pPlano] -= 1;
else
GivePlayerGP(playerid, -100);
if(IsPlayerInGuerra(playerid) || IsPlayerInUsina(playerid))
Hospital[playerid] = 2;
else
Hospital[playerid] = 1;
if(Player[playerid][pLeader] == TEAM_PREF)
{
format(string, sizeof(string), "[Atenзгo] O Prefeito %s foi assassinado por %s!!!", ReturnPlayer(playerid) , ReturnPlayer(killerid));
SendClientMessageToAll(COLOR_YELLOW, string);
}
//CONTRATO
if(Player[playerid][pHeadValue] > 0)
{
if(IsPlayerConnected(killerid))
{
if(Player[killerid][pMember] == TEAM_HITMAN)
{
if(Vitima[killerid] == playerid)
{
GivePlayerGP(killerid, Player[playerid][pHeadValue]);
format(string,128,"Um assassino cumpriu o contrato а cabeca de %s e adquiriu um valor de R$%d",ReturnPlayer(playerid),Player[playerid][pHeadValue]);
SendClientMessageToAll(COLOR_GROOVE, string);
WantedPoints[killerid] += 1;
SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
Player[playerid][pHeadValue] = 0;
SendoProcurado[playerid] = false;
Procurando[killerid] = false;
return 1;
}
else
{
WantedPoints[killerid] += 1;
SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
SendClientMessage(killerid, COLOR_YELLOW, "[Info] Vocк matou uma pessoa sem contrato.");
return 1;
}
}
}
}
if(CarShopping[playerid] == true)
{
CarShopping[playerid] = false;
DestroyVehicle(ShopCar[playerid]);
carbrowse[playerid] = 0;
Kick(playerid);
}
DropWeapons(playerid);
Conce[playerid] = 0;
new Float:px,Float:py,Float:pz;
GetPlayerPos(playerid, px, py, pz);
burgerexit[playerid] = 0;
storeexit[playerid] = 0;
Player[playerid][pInvWeapon] = 0;
Player[playerid][pInvAmmo] = 0;
cherifeexit[playerid] = 0;
Player[playerid][pLocal] = 255;
Player[playerid][pSeatBelt] = 0;
Player[playerid][pCapacete] = 0;
nowh[playerid] = 0;
if(fk)
{
new arma = GetPlayerWeapon(killerid);
format(string, sizeof(string), "%s[ID %d] matou %s com a arma %d.", ReturnPlayer(killerid), killerid, ReturnPlayer(playerid), arma);
ABroadCast(COLOR_LIGHTRED,string,1);
}
Player[playerid][Spawned] = false;
if(SpawnTime[playerid] > 0 && killerid != 65535 && Player[playerid][pLevel] > 2 && PlayerPaintballing[playerid] != 0)
{
format(string, sizeof(string), "%s[ID %d] cometeu SpawnKill em %s e foi kickado", ReturnPlayer(killerid), killerid, ReturnPlayer(playerid));
SendClientMessageToAll(COLOR_OOC,string);
Kick(killerid);
//return 1;
}
if(Player[killerid][pJailed] == 2 && Player[playerid][pJailed] == 2)
{
SendClientMessage(killerid, COLOR_RED,"Vocк foi kickado por matar no bangu, nгo faзa mais isso.");
Kick(killerid);
//return 1;
}
if(gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
//TELEFONEMA
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_YELLOW, " Ninguйm na linha...");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(IsPlayerConnected(killerid) && noevento[killerid] != true && Player[killerid][pMember] != TEAM_HITMAN)
{
if(IsACrime(killerid))
{
WantedPoints[killerid] += 1;
SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
}
else if(IsACivil(killerid))
{
WantedPoints[killerid] += 1;
SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
}
else if(IsACop(killerid))
WantedPoints[killerid] = 0;
}
return 1;
}
public onplayerspawn
pawn Код:
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)
{
NoHospital[playerid] = 0;
new model = Player[playerid][pChar];
if(Player[playerid][pMember] == TEAM_PM) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); Player[playerid][pTeam] = 2; gTeam[playerid] = 2; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_PF) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 2; gTeam[playerid] = 2; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_FA) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 2; gTeam[playerid] = 2; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BOMBE) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 12; gTeam[playerid] = 12; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BALLAS) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 7; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_GROOVE) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 7; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_PREF) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 7; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_HITMAN) { SetSpawnInfo(playerid, 10, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 10; gTeam[playerid] = 10; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_SANEWS) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 12; gTeam[playerid] = 12; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_LOWRIDERS) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_VAGOS) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BIKERS) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_MUNICIPAL) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 14; gTeam[playerid] = 14; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_RUSSA) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_DRIFTERS) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_CV) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_PCC) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BOPE) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 21; gTeam[playerid] = 21; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_ALQAEDA) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 22; gTeam[playerid] = 22; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_KINGS) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_PM) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_PF) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_FA) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_BALLAS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_GROOVE) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_PREF) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_HITMAN) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_SANEWS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_LOWRIDERS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_VAGOS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 7; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_VAGOS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 7; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_MUNICIPAL) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_AZTECAS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_RUSSA) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 16; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_DRIFTERS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_CV) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_PCC) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_BOPE) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_ALQAEDA) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_KINGS) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
SpawnPlayer(playerid);
}
}
if(Player[playerid][pChar] > 0){ SetPlayerSkin(playerid, Player[playerid][pModel]); }
else { SetPlayerSkin(playerid, Player[playerid][pModel]); }
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
return 1;
}