Fen1904
Новичок
Здравствуйте Ув. форумчане P-I. При онлайне именно с 38 id багается спавн, то есть после смерти и регистрации игроки спавнятся в небе, до 38 id всё норм (каждый спавнится где положено), всё посмотрел, но ошибок не нашел, с чем это может быть связанно?
Конечно же за Плюсик)
PHP:
public OnPlayerDeath(playerid, killerid, reason)
{
player_in_football[playerid] = 0;
if(BallHolder == playerid) RecreateBall();
if(player_in_football[playerid] == 1) player_in_football[playerid] = 0;
if(isPlayingBasketBall(playerid)) {
exitBBallGame(playerid);
SetPVarInt(playerid, "BrosilBBall", 0);
SetPVarInt(playerid, "ExitBBall", 0);
}
SetPVarInt(playerid, #death, 1);
GameTextForPlayer(playerid, "~r~Wasted", 5000, 0);
if(GetPVarInt(playerid, "BasePopitka") > 0 && GetPVarInt(playerid, "PlayerInBase")) SetPVarInt(playerid, "BasePopitka", GetPVarInt(playerid, "BasePopitka") - 1);
if(!GetPVarInt(playerid, "BasePopitka") && GetPVarInt(playerid, "PlayerInBase"))
{
Iter_Remove(BaseList, playerid);
PlayersInBase{0} --;
SetPVarInt(playerid, "baseBB", 1);
DeletePVar(playerid, "BasePopitka");
DeletePVar(playerid, "PlayerInBase");
if (!PlayersInBase{0})
{
PlayersInBase{0} = 0;
SendClientMessageToAll(COLOR_LIGHTBLUE, "Информация: Бейсджампинг окончен.");
foreach(new s: BaseList) { Iter_Remove(BaseList, s); }
BaseStarting[1] = 0;
}
}
if(GetPVarInt(playerid, "TuninG")) tuninguse = false, DeletePVar(playerid, "TuninG");
if(RaceStarting[2] == 3 && GetPVarInt(playerid, "PlayerInRace"))
{
DeletePVar(playerid, "PlayerInRace");
Iter_Remove(RacersList, playerid);
PlayerScore{playerid} = 0;
PlayersInRace{0} --;
PlayerPosition{playerid} = 0;
}
if(GetPVarInt(playerid, #job_window))
{
DeletePVar(playerid, #job_window);
if(lNomer[playerid] == 3) MoveDynamicObject(lift[2], 1353.06506, -1569.89990, 84.81356, 1.00);
if(lNomer[playerid] == 2) MoveDynamicObject(lift[1], 1340.48779, -1566.53296, 84.77550, 1.00);
if(lNomer[playerid] == 1) MoveDynamicObject(lift[0], 1328.02014, -1563.87646, 84.65142, 1.00);
nLift[lNomer[playerid]-1] = 0;
lNomer[playerid] = 0;
}
ResetPlayerWeapons(playerid);
OnPlayerSaveAccount(playerid);
for(new i; i != 6; i++) PlayerTextDrawHide(playerid, speed_PTD[playerid][i]);
for(new i; i != 18; i++) TextDrawHideForPlayer(playerid, speed_TD[i]);
if(!AntiFakeKill[playerid]) return KickEx(playerid,3);
AntiFakeKill[playerid] = false;
SetPVarInt(playerid,"K_Times",GetPVarInt(playerid,"K_Times") + 1);
if(GetPVarInt(playerid,"K_Times") > 1) return KickEx(playerid,4);
pTemp[playerid][pSpawn] = false;
if(PlayerInfo[playerid][pJob] == 2)
{
if(gcontract{playerid} == true)
{
Delete3DTextLabel(Meh3d[GetPlayerVehicleID(playerid)]);
gcontract{playerid} = false;
}
}
if(IsAGang(killerid) && IsAGang(playerid) && killerid != INVALID_PLAYER_ID)
{
for(new i= 0; i < sizeof(GZInfo); i++)
{
if(GZInfo[i][ZoneOnBattle] == 1)
{
if(PlayerInfo[killerid][pMRInections] != PlayerInfo[playerid][pMRInections])
{
if(PlayerInfo[killerid][pMRInections] == GZInfo[i][gNapad] || PlayerInfo[killerid][pMRInections] == GZInfo[i][gFrakVlad])
{
if(PlayerInfo[playerid][pMRInections] == GZInfo[i][gNapad] || PlayerInfo[playerid][pMRInections] == GZInfo[i][gFrakVlad])
{
SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
CountOnZone[PlayerInfo[killerid][pMRInections]]++;
break;
}
}
}
}
}
}
if(BizWarTime > 0)
{
if(ISAMAFIA(killerid) && ISAMAFIA(playerid) && killerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[killerid][pMRInections] != PlayerInfo[playerid][pMRInections])
{
if(PlayerInfo[killerid][pMRInections] == MZInfo[bNapad] || PlayerInfo[killerid][pMRInections] == MZInfo[bFrakVlad])
{
if(PlayerInfo[playerid][pMRInections] == MZInfo[bNapad] || PlayerInfo[playerid][pMRInections] == MZInfo[bFrakVlad])
{
switch(MZInfo[bMesto])
{
case 1:
if(PlayerToKvadrat(killerid,300.755706, 2402.644531, 468.755706, 2580.644531) && PlayerToKvadrat(playerid,300.755706, 2402.644531, 468.755706, 2580.644531))
{
SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
MZInfo[bCountDead][PlayerInfo[killerid][pMRInections]]++;
}
case 2:
if(PlayerToKvadrat(killerid,-855.6808,1891.0676,-519.0121,2128.4995) && PlayerToKvadrat(playerid,-855.6808,1891.0676,-519.0121,2128.4995))
{
SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
MZInfo[bCountDead][PlayerInfo[killerid][pMRInections]]++;
}
case 3:
if(PlayerToKvadrat(killerid,275.881378, 797.211608, 443.881378, 973.211608) && PlayerToKvadrat(playerid,275.881378, 797.211608, 443.881378, 973.211608))
{
SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
MZInfo[bCountDead][PlayerInfo[killerid][pMRInections]]++;
}
}
}
}
}
}
}
if(AlhambraDJ == true && AlhambraDJID == playerid) AlhambraDJ = false, AlhambraDJID = INVALID_PLAYER_ID;
if(reason == 38 && GetPlayerState(killerid) == PLAYER_STATE_PASSENGER)
{
new warnn[128];
format(warnn, sizeof(warnn), "<Warning> %s[%d]: убил с минигана %s[%d] wep %d guns %d",PlayerInfo[killerid][pNames],killerid,PlayerInfo[playerid][pNames],playerid,GetPlayerWeapon(killerid),GetPlayerAmmo(killerid));
ABroadCast(0xff0000ff,warnn,2);
RemoveFromVehicle(killerid);
}
if(reason == 38)
{
format(stringer,MAX_STR, "<Warning> %s[%d]: убил с минигана %s[%d] wep %d guns %d",PlayerInfo[killerid][pNames],killerid,PlayerInfo[playerid][pNames],playerid,GetPlayerWeapon(killerid),GetPlayerAmmo(killerid));
ABroadCast(0xFF0000AA,stringer,1);
RemoveFromVehicle(killerid);
}
DeletePVar(playerid, "udar");
if(GetPVarInt(playerid, #LessPil))
{
DeletePVar(playerid, #OldLessSkin);
DeletePVar(playerid, #LessPil);
DeletePVar(playerid, #LessProc);
DeletePVar(playerid, #Derevo);
DeletePVar(playerid, #LessStatus);
}
TextDrawHideForPlayer(playerid,ProcentDraw[playerid]);
TextDrawHideForPlayer(playerid,AmountLDraw[playerid]);
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
RemovePlayerAttachedObject(playerid,3);
RemovePlayerAttachedObject(playerid,4);
RemovePlayerAttachedObject(playerid,0);
DeletePVar(playerid, "usemats");
if(GetPVarInt(playerid, "SelectChar") == 255)
{
SetPlayerSkin(playerid, GetPVarInt(playerid, "OldSkin"));
PlayerInfo[playerid][pChar] = GetPVarInt(playerid, "OldSkin");
DeletePVar(playerid, "SelectChar");
}
if(PlayerInfo[playerid][pJob] == 7) PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pDrugtime] = 0;
forma{playerid} = false;
keysvorota{playerid} = false;
proverkaforma{playerid} = false;
PlayerInfo[playerid][pLocal] = 255;
DisablePlayerCheckpoint(playerid);
keys[playerid] = 0;
if(PlayerInfo[playerid][pMRInections] == 4) Medics -= 1;
if(PlayerInfo[playerid][pWanted] > 0)
{
if(IsACop(killerid))
{
PlayerInfo[playerid][pMestoJail] = 1;
UpdatePlayerData(playerid, "pMestoJail", PlayerInfo[playerid][pMestoJail]);
if(PlayerInfo[playerid][pWanted] == 1)
{
PlayerInfo[playerid][pCash]-=50000;
PlayerInfo[killerid][pCash]+=50000;
GameTextForPlayer(playerid, "~r~-$50000", 5000, 1);
SCM(playerid,COLOR_YELLOW,"Вас посадили в тюрьму на 600 секунд. Штраф 50.000 вирт");
SCM(killerid,COLOR_YELLOW,"Вы посадили преступника на 600 секунд. Премия 50.000 вирт");
PlayerInfo[playerid][pWanted] =0;
UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 600;
ResetPlayerWeapons(playerid);
}
else if(PlayerInfo[playerid][pWanted] == 2)
{
GiveMoney(killerid,0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pCash]-=60000;
PlayerInfo[killerid][pCash]+=60000;
GameTextForPlayer(playerid, "~r~-$60000", 5000, 1);
SCM(playerid,COLOR_YELLOW,"Вас посадили в тюрьму на 1200 секунд. Штраф 60.000 вирт");
SCM(killerid,COLOR_YELLOW,"Вы посадили преступника на 1200 секунд. Премия 60.000 вирт");
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 1200;
PlayerInfo[playerid][pWanted] =0;
UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
}
else if(PlayerInfo[playerid][pWanted] == 3)
{
GiveMoney(killerid,0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pCash]-=3;
PlayerInfo[killerid][pCash]+=1;
GameTextForPlayer(playerid, "~r~-$3", 5000, 1);
SCM(playerid,COLOR_YELLOW,"Вас посадили в тюрьму на 1800 секунд. Штраф 3 вирт");
SCM(killerid,COLOR_YELLOW,"Вы посадили преступника на 1800 секунд. Премия 1 вирт");
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 1800;
PlayerInfo[playerid][pWanted] =0;
UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
}
else if(PlayerInfo[playerid][pWanted] == 4)
{
GiveMoney(killerid,0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pCash]-=4;
PlayerInfo[killerid][pCash]+=1;
GameTextForPlayer(playerid, "~r~-$4", 5000, 1);
SCM(playerid,COLOR_YELLOW,"Вас посадили в тюрьму на 2400 секунд. Штраф 4 вирт");
SCM(killerid,COLOR_YELLOW,"Вы посадили преступника на 2400 секунд. Премия 1 вирт");
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 2400;
PlayerInfo[playerid][pWanted] =0;
UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
}
else if(PlayerInfo[playerid][pWanted] == 5)
{
GiveMoney(killerid,0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pCash]-=5;
PlayerInfo[killerid][pCash]+=1;
GameTextForPlayer(playerid, "~r~-$5", 5000, 1);
SCM(playerid,COLOR_YELLOW,"Вас посадили в тюрьму на 3000 секунд. Штраф 5 вирт");
SCM(killerid,COLOR_YELLOW,"Вы посадили преступника на 3000 секунд. Премия 1 вирт.");
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 3000;
PlayerInfo[playerid][pWanted] =0;
UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
}
else if(PlayerInfo[playerid][pWanted] >= 6)
{
GiveMoney(killerid,0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pCash]-=6;
PlayerInfo[killerid][pCash]+=1;
GameTextForPlayer(playerid, "~r~-$6", 5000, 1);
SCM(playerid,COLOR_YELLOW,"Вас посадили в тюрьму на 3600 секунд. Штраф 6 вирт");
SCM(killerid,COLOR_YELLOW,"Вы посадили преступника на 3600 секунд. Премия 1 вирт.");
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 3600;
PlayerInfo[playerid][pWanted] =0;
UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
}
}
PlayerInfo[playerid][pWanted] = 0;
UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
}
new caller = GetPVarInt(playerid, "Mobile");
if(caller != 999)
{
SCM(caller, COLOR_GRAD2, "Связь оборвалась...");
CellTime[caller] = false;
CellTime[playerid] = false;
SetPVarInt(caller, "Mobile", 999);
SetPVarInt(playerid, "Mobile", 999);
}
if(PlayerInfo_MP_START{playerid} && PlayerInfo_MP_START{killerid} && GetPVarInt(playerid,"PlayerInfo_MP_Staus") != GetPVarInt(killerid,"PlayerInfo_MP_Staus"))
{
new mes[100];
DeathMatch_Score[GetPVarInt(playerid,"PlayerInfo_MP_Staus")-1]++;
format(mes,sizeof(mes), "C.TERRORIST: ~w~%i",DeathMatch_Score[1]);
TextDrawSetString(CounterSText[8], mes);
format(mes,sizeof(mes), "TERRORIST: ~w~%i",DeathMatch_Score[0]);
TextDrawSetString(CounterSText[9], mes);
format(mes,sizeof(mes), "~w~%s ~r~killed ~w~%s",PlayerInfo[killerid][pNames],PlayerInfo[playerid][pNames]);
TextDrawSetString(CounterSText[10], mes);
SetPlayerHealthAC(killerid, 100.0);
return 1;
}
if(IsAGang(killerid))
{
if(PlayerInfo[playerid][pMRInections] == 19 || PlayerInfo[playerid][pMRInections] == 3 || PlayerInfo[playerid][pMRInections] == 27)
{
for(new i =0;i<sizeof(GZInfo);i++)
{
if(PlayerToKvadrat(playerid,GZInfo[i][gCoords][0], GZInfo[i][gCoords][1],GZInfo[i][gCoords][2],GZInfo[i][gCoords][3]))
{
forma{killerid} = true;
PlayerInfo[playerid][pModel] =252;
SCM(playerid, COLOR_YELLOW, "Вы потеряли армейскую форму");
SCM(killerid, COLOR_YELLOW2, "Вы cняли с армейца форму, введите /switchskin, чтобы переодеться");
format(stringer,SMALL_SIZE, "%s потерял армейскую форму", PlayerInfo[playerid][pNames]);
SendFamilyMessage(19,COLOR_YELLOW2, stringer);SendFamilyMessage(3,COLOR_YELLOW2, stringer);SendFamilyMessage(27,COLOR_YELLOW2, stringer);
SetPVarInt(playerid,"StartRabWork",0);
SpawnPlayer(playerid);
}
}
}
}
if(IsAGang(killerid))
{
if(PlayerInfo[playerid][pMRInections] == 19)
{
keysvorota{killerid} = true;
SCM(playerid, COLOR_YELLOW, "Бандит украл у Вас ключи! Теперь он сможет открыть ворота Вашей армии.");
SCM(killerid, COLOR_YELLOW2, "Вы украли ключи у армейца! Теперь Вы сможете открыть ворота его армии.");
format(stringer, SMALL_SIZE, "%s потерял ключи от ворот армии.", PlayerInfo[playerid][pNames]);
SendFamilyMessage(19,COLOR_YELLOW2, stringer);
SpawnPlayer(playerid);
}
}
if(IsAGang(killerid))
{
if(PlayerInfo[playerid][pMRInections] == 1 || PlayerInfo[playerid][pMRInections] == 10 || PlayerInfo[playerid][pMRInections] == 21)
{
for(new i =0;i<sizeof(GZInfo);i++)
{
if(PlayerToKvadrat(playerid,GZInfo[i][gCoords][0], GZInfo[i][gCoords][1],GZInfo[i][gCoords][2],GZInfo[i][gCoords][3]))
{
keys[killerid] += 1;
SCM(playerid, COLOR_YELLOW, "Вы потеряли ключи от камеры!");
SCM(killerid, COLOR_YELLOW, "Вы забрали у полицейского ключи от камеры!");
format(stringer,SMALL_SIZE, "Полицейский %s потерял ключи от камеры", PlayerInfo[playerid][pNames]);
SendFamilyMessage(1,COLOR_YELLOW2, stringer);
SendFamilyMessage(2,COLOR_YELLOW2, stringer);
SendFamilyMessage(10,COLOR_YELLOW2, stringer);
SendFamilyMessage(21,COLOR_YELLOW2, stringer);
}
}
}
}
race_death(playerid);
DisablePlayerCheckpoint(playerid);
if(PlayerInfo[playerid][pHospital] != 1)
{
if(IsAGang(playerid) || IsACop(playerid) || IsAArm(playerid) || IsAMedic(playerid) || ISAMAFIA(playerid) || GetPVarInt(playerid, "AntiDeathRace") || GetPVarInt(playerid, "BasePopitka") > 0 || GetPVarInt(playerid, "baseBB") || PlayerInfo[playerid][pPrison] || PlayerInfo_MP_START{playerid}) return 1;
PlayerInfo[playerid][pHospital] = 1;
pTemp[playerid][pInHospital] = true;
}
return 1;
}
PHP:
public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
GetPlayerIp(playerid,PlayerInfo[playerid][pIP],24);
player_in_football[playerid] = 0;
PreloadAnimLib(playerid,"DANCING"); PreloadAnimLib(playerid,"PAULNMAC"); PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"CRACK"); PreloadAnimLib(playerid,"MISC"); PreloadAnimLib(playerid,"SWEET");
PreloadAnimLib(playerid,"SPRAYCAN"); PreloadAnimLib(playerid,"SHOP"); PreloadAnimLib(playerid,"RYDER");
PreloadAnimLib(playerid,"RIOT"); PreloadAnimLib(playerid,"BAR"); PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"benchpress"); PreloadAnimLib(playerid,"BSKTBALL"); PreloadAnimLib(playerid,"CAMERA");
PreloadAnimLib(playerid,"CAR"); PreloadAnimLib(playerid,"CAR_CHAT"); PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"GHANDS"); PreloadAnimLib(playerid,"GRAFFITI"); PreloadAnimLib(playerid,"GRAVEYARD");
PreloadAnimLib(playerid,"INT_HOUSE"); PreloadAnimLib(playerid,"INT_OFFICE"); PreloadAnimLib(playerid,"LOWRIDER");
PreloadAnimLib(playerid,"MEDIC"); PreloadAnimLib(playerid,"WAYFARER"); PreloadAnimLib(playerid,"FIGHT_D");
for(new B = 0x0; B != 4; B++) PlayerInfo[playerid][pLicenses][B] = 1;
if(BallHolder == playerid) RecreateBall();
if(PlayerInfo[playerid][pLevel] < 10) PlayerInfo[playerid][pLevel] = 10;
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
DeletePVar(playerid, "K_Times");
AntiFakeKill[playerid] = true;
if(!PlayerInfo[playerid][pLogin] && cheaters{playerid} == false) KickEx(playerid, 75);
if(PlayerInfo[playerid][pMRInections] > 0)
{
if(StartRabWork(playerid) && !GetPVarInt(playerid,"StartRabWork")) SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
else SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
}
if(PlayerInfo[playerid][pMRInections] <= 0) SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
if(RINFO[playerid][sID] != INVALID_PLAYER_ID)
{
if(!PlayerInfo[RINFO[playerid][sID]][pLogin] && RINFO[playerid][sDialog] == false)
{
togglePlayerSpectating(playerid, true, 1);
GameTextForPlayer(playerid,"~r~PLAYER DISCONNECT",3000,3);
RINFO[playerid][sDialog] = true;
return SPD(playerid,238,0,"{FF6F00}Внимание!","{FFFFFF}Игрок, за которым Вы следили вышел\nХотите отключить Recon?","Выйти","Отмена");
}
RINFO[playerid][sDialog] = false;
for(new x; x < 2; x++) PlayerTextDrawHide(playerid, ReconPlayerText[playerid][x]);
for(new x; x < 32; x++) TextDrawHideForPlayer(playerid, ReconText[x]);
CancelSelectTextDraw(playerid);
SetPlayerPosEx(playerid,RINFO[playerid][sPos][0],RINFO[playerid][sPos][1],RINFO[playerid][sPos][2]);
SetPlayerInterior(playerid,RINFO[playerid][sInt]);
SetPlayerVirtualWorld(playerid,RINFO[playerid][sVirt]);
SetPlayerFacingAngle(playerid,RINFO[playerid][sPos][3]);
SetCameraBehindPlayer(playerid);
RINFO[playerid][sID] = INVALID_PLAYER_ID;
return 1;
}
SetPlayerSpawn(playerid);
return 1;
}
PHP:
stock SetPlayerSpawn(playerid)
{
if(GetPVarInt(playerid, "gps_pic") == 228) DeletePVar(playerid, "gps_pic"), DisablePlayerCheckpoint(playerid);
KillTimer(STimer[playerid]);
if(!PlayerInfo[playerid][pLogin]) return SCM(playerid, COLOR_WHITE, "Необходимо авторизоваться!"), KickEx(playerid, 1);
if(IsPlayerConnected(playerid))
{
new gun[128];
GetPVarString(playerid,"mysqlgun",gun,128);
DeletePVar(playerid,"mysqlgun");
if(strlen(gun))
{
new guns[6],ammos[6],datas[2][56];
explode(datas,gun,":");
printf("%s:%s",datas[0],datas[1]);
sscanf(datas[0],"p<|>a<i>[6]",guns);
sscanf(datas[1],"p<|>a<i>[6]",ammos);
for(new i;i<6;i++) GivePlayerWeapon(playerid,guns[i],ammos[i]);
}
if(PlayerInfo[playerid][pAccessories][0] != 0x0) SetPlayerAttachedObject(playerid,0,PlayerInfo[playerid][pAccessories][0],2,PlayerInfo[playerid][PositionAcc][0],PlayerInfo[playerid][PositionAcc][1], PlayerInfo[playerid][PositionAcc][2],PlayerInfo[playerid][PositionAcc][3],PlayerInfo[playerid][PositionAcc][4],PlayerInfo[playerid][PositionAcc][5], PlayerInfo[playerid][PositionAcc][6], PlayerInfo[playerid][PositionAcc][7],PlayerInfo[playerid][PositionAcc][8]);
if(PlayerInfo[playerid][pAccessories][1] != 0x0) SetPlayerAttachedObject(playerid,1,PlayerInfo[playerid][pAccessories][1],2,0.1, 0.03, 0.0, 0.0, 90.0, 90.0);
if(PlayerInfo[playerid][pWanted] > 6) PlayerInfo[playerid][pWanted] = 6, UpdatePlayerData(playerid, "pWanted", PlayerInfo[playerid][pWanted]);
if(PlayerInfo[playerid][pChar] == 0) PlayerInfo[playerid][pChar] = 230;
if(PlayerInfo[playerid][pModel] == 0) PlayerInfo[playerid][pModel] = 230;
if(PlayerInfo[playerid][pLRInections] == 1 && PlayerInfo[playerid][pRKInections] != 15) PlayerInfo[playerid][pRKInections] = 15;
if(PlayerInfo[playerid][pLRInections] == 2 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 3 && PlayerInfo[playerid][pRKInections] != 15) PlayerInfo[playerid][pRKInections] = 15;
if(PlayerInfo[playerid][pLRInections] == 4 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 5 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 6 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 7 && PlayerInfo[playerid][pRKInections] != 6) PlayerInfo[playerid][pRKInections] = 6;
if(PlayerInfo[playerid][pLRInections] == 8 && PlayerInfo[playerid][pRKInections] != 5) PlayerInfo[playerid][pRKInections] = 5;
if(PlayerInfo[playerid][pLRInections] == 9 && PlayerInfo[playerid][pRKInections] != 13) PlayerInfo[playerid][pRKInections] = 13;
if(PlayerInfo[playerid][pLRInections] == 10 && PlayerInfo[playerid][pRKInections] != 15) PlayerInfo[playerid][pRKInections] = 15;
if(PlayerInfo[playerid][pLRInections] == 11 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 12 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 13 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 14 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 15 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 16 && PlayerInfo[playerid][pRKInections] != 13) PlayerInfo[playerid][pRKInections] = 13;
if(PlayerInfo[playerid][pLRInections] == 17 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 18 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 19 && PlayerInfo[playerid][pRKInections] != 15) PlayerInfo[playerid][pRKInections] = 15;
if(PlayerInfo[playerid][pLRInections] == 21 && PlayerInfo[playerid][pRKInections] != 15) PlayerInfo[playerid][pRKInections] = 15;
if(PlayerInfo[playerid][pLRInections] == 24 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 25 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 26 && PlayerInfo[playerid][pRKInections] != 10) PlayerInfo[playerid][pRKInections] = 10;
if(PlayerInfo[playerid][pLRInections] == 27 && PlayerInfo[playerid][pRKInections] != 11) PlayerInfo[playerid][pRKInections] = 11;
if(PlayerInfo[playerid][pLRInections] == 28 && PlayerInfo[playerid][pRKInections] != 6) PlayerInfo[playerid][pRKInections] = 6;
if(PlayerInfo[playerid][pMuteTime] == 0 && PlayerInfo[playerid][pMuted] == 1) PlayerInfo[playerid][pMuted] = 0;
PlayerHealth[playerid] = 100;
SetPlayerHealthAC(playerid, PlayerHealth[playerid]);
if (PlayerInfo[playerid][pWanted] >= 1)
{
SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pWanted] );
WantedPoints[playerid]++;
}
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,990);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,990);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,990);
if(GetPVarInt(playerid,"Show_TextLogin")) Hide_TextLogin(playerid);
if(GetPVarInt(playerid,"Show_TextRegister")) Hide_TextRegister(playerid);
if(PlayerInfo_MP_START[playerid]) return GiveStatus_MP(playerid, GetPVarInt(playerid,"PlayerInfo_MP_Staus"));
SetCameraBehindPlayer(playerid);
SetPlayerToTeamColor(playerid);
if(PlayerInfo[playerid][pTut] == 0)
{
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
InterpolateCameraPos(playerid, 88.963806, -1564.630615, 118.438804, 586.440490, -1496.917480, 76.717933, 17000);
InterpolateCameraLookAt(playerid, 93.910079, -1564.273193, 117.801132, 590.450683, -1499.176635, 74.764762, 17000);
SPD(playerid,4,DIALOG_STYLE_MSGBOX,"{FF6F00}Выбор пола","{FFFFFF}Какого пола будет ваш персонаж:\n","Мужчина","Женщина");
SelectTextDraw(playerid, 0xFF9933FF);
TogglePlayerControllable(playerid, false);
}
if(PlayerInfo[playerid][pMRInections] > 0) SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
if(PlayerInfo[playerid][pMRInections] <= 0) SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
if(PlayerInfo[playerid][bAdmin])
{
SetPlayerPosEx(playerid,-782.2723,490.1766,1381.5924);
SetPlayerFacingAngle(playerid,358.6103);
SetPlayerInterior(playerid,1);
SetPlayerVirtualWorld(playerid,0);
return true;
}
if(PlayerInfo[playerid][pPrison][0] == 1 && PlayerInfo[playerid][pPrison][1] > 0)
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid, 0);
SetPlayerPosEx(playerid,5512.0884,1243.8398,23.1886);
SetPlayerFacingAngle(playerid, 179.7971);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
if(PlayerInfo[playerid][pMestoJail] == 1)
{
SetPlayerInterior(playerid, 6);
PlayerInfo[playerid][pInt] = 6;
SetPlayerPosEx(playerid,264.1425,77.4712,1001.0391);
SetPlayerFacingAngle(playerid, 263.0160);
return 1;
}
if(PlayerInfo[playerid][pMestoJail] == 2)
{
SetPlayerInterior(playerid, 10);
PlayerInfo[playerid][pInt] = 10;
SetPlayerPosEx(playerid,219.5400,109.9767,999.0156);
SetPlayerFacingAngle(playerid, 1.0000);
return 1;
}
if(PlayerInfo[playerid][pMestoJail] == 3)
{
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPosEx(playerid,198.3642,161.8103,1003.0300);
SetPlayerFacingAngle(playerid, 1.0000);
return 1;
}
}
else if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPosEx(playerid,5508.3706,1244.7594,23.1886);
SetPlayerSkin(playerid, 62);
return 1;
}
if(PlayerInfo[playerid][pHospital] == 1 && !GetPVarInt(playerid, "BasePopitka") && !GetPVarInt(playerid, "baseBB"))
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
new randomspawn = 1 + random(2);
switch(randomspawn)
{
case 1:
{
SetPlayerPosEx(playerid, -2667.3616,667.7733,3014.4680);
SetPlayerFacingAngle(playerid, 268.8055);
}
case 2:
{
SetPlayerPosEx(playerid, -2672.6980,667.7546,3014.4680);
SetPlayerFacingAngle(playerid, 90.8305);
}
default:
{
SetPlayerPosEx(playerid, -2667.3616,667.7733,3014.4680);
SetPlayerFacingAngle(playerid, 268.8055);
}
}
pTemp[playerid][pInHospital] = true;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
return 1;
}
SetPlayerVirtualWorld(playerid,0);
if(PlayerInfo[playerid][pHouse] != -1 && PlayerInfo[playerid][pSpawn] == 1 && !GetPVarInt(playerid, "BasePopitka") && !GetPVarInt(playerid, "baseBB"))
{
new house = PlayerInfo[playerid][pHouse];
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPosEx(playerid, HouseInfo[house][hExit][0], HouseInfo[house][hExit][1],HouseInfo[house][hExit][2]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
SetPlayerVirtualWorld(playerid, house+50);
return 1;
}
if(PlayerInfo[playerid][pHotel] != -1 && PlayerInfo[playerid][pSpawn] == 1 && !GetPVarInt(playerid, "BasePopitka") && !GetPVarInt(playerid, "baseBB"))
{
new hotel = PlayerInfo[playerid][pHotel];
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, false, "i", playerid);
SetPlayerVirtualWorld(playerid, HotelInfo[hotel][mVW]);
SetPlayerPosEx(playerid, 1325.7842,-1071.0078,3458.9060);
SetPlayerFacingAngle(playerid, 90.2511);
SetPlayerInterior(playerid, 2);
PlayerInfo[playerid][pLocal] = hotel;
return 1;
}
if(PlayerInfo[playerid][pCar][0] == 508 && !GetPVarInt(playerid, "BasePopitka") && !GetPVarInt(playerid, "baseBB"))
{
if(PlayerInfo[playerid][pSpawn] == 1)
{
SetPlayerPosEx(playerid, 2531.7166,-1031.2251,54.0299);
TogglePlayerControllable(playerid, 0);
SetTimerEx("UnFreez", 1500, false, "i", playerid);
SetPlayerFacingAngle(playerid, 0);
SetPlayerVirtualWorld(playerid,caridhouse[playerid]);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 1);
SetPVarInt(playerid, "Intropic", caridhouse[playerid]);
return 1;
}
}
if(GetPVarInt(playerid, "AntiDeathRace"))
{
SetPlayerPosEx(playerid, 827.0083,5.8989,1004.1870);
SetPlayerFacingAngle(playerid, 269.6992);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 300);
DeletePVar(playerid, "AntiDeathRace");
return 1;
}
if(GetPVarInt(playerid, "BasePopitka") > 0)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, false, "d", playerid);
SetPlayerPosEx(playerid, 377.6851,-161.1450,3366.3403);
SetPlayerFacingAngle(playerid, 179.1788);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 46, 228);
return 1;
}
if(GetPVarInt(playerid, "baseBB"))
{
SetPlayerPosEx(playerid, 2177.4709,1118.3693,12.6484);
SetPlayerFacingAngle(playerid, 62.3957);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
DeletePVar(playerid, "baseBB");
return 1;
}
switch(PlayerInfo[playerid][pMRInections])
{
case 2:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 1);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPosEx(playerid, -157.2243,-69.4745,915.9959);
SetPlayerFacingAngle(playerid, 269.5489);
return 1;
}
case 3:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
if(forma{playerid} == true)
{
SetPlayerSkin(playerid, 252);
SetPlayerInterior(playerid, 1);
SetPlayerPosEx(playerid, 1538.1339,-1763.4106,1506.5640);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 1);
SetPlayerCheckpoint(playerid, 1542.5778,-1773.6821,1506.5640-1, 1.0);
SetPVarInt(playerid, "gps_pic", 228);
return 1;
}
SetPlayerCheckpoint(playerid, 1542.5778,-1773.6821,1506.5640-1, 1.0);
SetPVarInt(playerid, "gps_pic", 228);
SetPlayerInterior(playerid, 1);
SetPlayerPosEx(playerid, 1538.1339,-1763.4106,1506.5640);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 1);
return 1;
}
case 10:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 10);
SetPlayerPosEx(playerid, 225.1647,121.0442,999.0786);
SetPlayerFacingAngle(playerid, 89.0733);
PlayerInfo[playerid][pInt] = 10;
return 1;
}
case 19:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
if(forma{playerid} == true)
{
SetPlayerSkin(playerid, 252);
SetPlayerPosEx(playerid, 1538.1339,-1763.4106,1506.5640);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 1);
return 1;
}
SetPlayerPosEx(playerid, 1538.1339,-1763.4106,1506.5640);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 1);
return 1;
}
case 21:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 3);
SetPlayerPosEx(playerid, 211.3636,184.3113,1003.0313);
SetPlayerFacingAngle(playerid, 174.3579);
PlayerInfo[playerid][pInt] = 3;
SetPlayerVirtualWorld(playerid, 322);
return 1;
}
case 26://Спавн правительства
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 1);
SetPlayerPosEx(playerid, -15.6991,-55.7246,1019.8868);
SetPlayerFacingAngle(playerid, 91.1188);
return 1;
}
case 16:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 15);
SetPlayerPosEx(playerid, 1002.1502,1005.3368,1999.7999);
SetPlayerFacingAngle(playerid, 87.5641);
SetPlayerVirtualWorld(playerid, 1);
PlayerInfo[playerid][pInt] = 15;
lNews[playerid] = false;
return 1;
}
case 6: // yakuda
{
GivePlayerWeapon(playerid,8,1);
SetPlayerInterior(playerid, 5);
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
SetPlayerPosEx(playerid, 1265.7104,-793.7453,1084.0078);
SetPlayerVirtualWorld(playerid, 3);
return 1;
}
case 14: // rm
{
GivePlayerWeapon(playerid,1,1);
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
SetPlayerInterior(playerid, 5);
SetPlayerPosEx(playerid, 1265.7104,-793.7453,1084.0078);
SetPlayerVirtualWorld(playerid, 5);
return 1;
}
case 11:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerPosEx(playerid, -2087.1372,-80.4851,2855.1479);
SetPlayerFacingAngle(playerid, 178.7732);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerVirtualWorld(playerid, 1);
return 1;
}
case 5: // lcn
{
GivePlayerWeapon(playerid,2,1);
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 5);
SetPlayerPosEx(playerid, 1265.7104,-793.7453,1084.0078);
PlayerInfo[playerid][pInt] = 5;
SetPlayerVirtualWorld(playerid, 2);
return 1;
}
case 24:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPosEx(playerid, 1280.3894,1271.6595,10.8281);
SetPlayerFacingAngle(playerid, 316.8163);
return 1;
}
case 25:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPosEx(playerid, 211.7866,142.4048,1003.0234);
SetPlayerFacingAngle(playerid, 269.2128);
SetPlayerVirtualWorld(playerid, 21);
return 1;
}
case 4:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerPosEx(playerid, -2646.4717,659.9686,3014.4626);
SetPlayerFacingAngle(playerid, 178.9675);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Medics ++;
pTemp[playerid][pInHospital] = true;
return 1;
}
case 12:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerPosEx(playerid, -61.2984,1364.5847,1080.2109);
SetPlayerFacingAngle(playerid, 100);
SetPlayerInterior(playerid,6);
SetPlayerVirtualWorld(playerid, 34);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
case 18:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 18);
SetPlayerVirtualWorld(playerid, 63);
SetPlayerPosEx(playerid, -223.84,1410.51,27.77);
RemovePlayerAttachedObject(playerid, 1);
PlayerInfo[playerid][pInt] = 18;
return 1;
}
case 17:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerFacingAngle(playerid, 90.4248);
SetPlayerPosEx(playerid, -49.7558,1400.3553,1084.4297);
SetPlayerInterior(playerid,8);
SetPlayerVirtualWorld(playerid, 36);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
case 13:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 4);
SetPlayerVirtualWorld(playerid, 75);
SetPlayerFacingAngle(playerid, 263.0497);
SetPlayerPosEx(playerid, 303.63,309.25,999.15);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
case 15:
{
SetPlayerCheckpoint(playerid,2492.0986,-1710.9407,1014.7422,1.0);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPosEx(playerid, 2496.012939,-1708.923217,1014.742187);
SetPlayerFacingAngle(playerid, 0.191693);
SetPlayerVirtualWorld(playerid, 1);
return 1;
}
case 8:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPosEx(playerid, 1658.60,2253.22,11.06);
SetPlayerFacingAngle(playerid, 0);
return 1;
}
case 1:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
SetPlayerInterior(playerid, 6);
SetPlayerPosEx(playerid, 235.8750,73.5106,1005.0391);
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
case 7:
{
SetPlayerInterior(playerid, 1);
SetPlayerPosEx(playerid, 55.8811,-124.0068,1062.8960);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
return 1;
}
case 27:
{
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 3000, 0, "d", playerid);
if(forma{playerid} == true)
{
SetPlayerSkin(playerid, 252);
SetPlayerPosEx(playerid, 1538.1339,-1763.4106,1506.5640);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 3);
SetPlayerInterior(playerid, 3);
SetPlayerCheckpoint(playerid, 1542.5778,-1773.6821,1506.5640-1, 1.0);
SetPVarInt(playerid, "gps_pic", 228);
return 1;
}
SetPlayerPosEx(playerid, 1538.1339,-1763.4106,1506.5640);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 3);
SetPlayerInterior(playerid, 3);
SetPlayerCheckpoint(playerid, 1542.5778,-1773.6821,1506.5640-1, 1.0);
SetPVarInt(playerid, "gps_pic", 228);
return 1;
}
default:
{
SetPlayerPosEx(playerid,1209.5179+random(5),-1747.6626+random(5),13.5936); // spawn
TogglePlayerControllable(playerid, false);
SetTimerEx("UnFreez", 1000, 0, "d", playerid);
SetPlayerFacingAngle(playerid, 36.1792);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
}
}
return 1;
}
