06.12.2013, 04:47
Hello everyone. Recently, something magical happens on the server that is. After calling function SpawnPlayer (playerid) in transport. Performed only action = 1, action = 10. Although the entry on the server and the game still carried and SP can tell what the problem is
PHP код:
public OnPlayerSpawn(playerid)
{
if(PlayerLogged[playerid] == 0) return GKick(playerid);
SCM(playerid,-1,"Action = 1. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
SetPlayerVirtualWorld(playerid,0);
PlayerPlaySound(playerid,1184,0.0,0.0,0.0);
SetPVarInt(playerid,"K_Times",0);
SetPVarInt(playerid, "AntiBreik", 3);
SetPlayerSkills(playerid);
SetHealth(playerid,100.00);
sitosti = CreateProgressBar(548.00, 35.00, 57.50, 6.19, 3407871, 100.0);
SetProgressBarValue(sitosti, PlayerInfo[playerid][pSatiety]);
/*if(animload[playerid] == false)
{
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"BD_FIRE");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"CASINO");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"CRIB");
PreloadAnimLib(playerid,"ROB_BANK");
PreloadAnimLib(playerid,"JST_BUISNESS");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"OTB");
PreloadAnimLib(playerid,"BUDDY");
animload[playerid] = true;
SCM(playerid,-1,"Action = 1. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
}*/
if(PlayerInfo[playerid][pFightStyle] != 0)
{
SetPlayerFightingStyle(playerid,PlayerInfo[playerid][pFightStyle]);
}
else SetPlayerFightingStyle(playerid,0);
GunCheckTime[playerid] = 5;
SetMoney(playerid, PlayerInfo[playerid][pCash]);
SetPlayerTeamColor(playerid);
ResetWeapon(playerid);
LoadPWeapon(playerid);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
if(PlayerInfo[playerid][pWanted] > 0) SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWanted]);
if(PlayerLogged[playerid] == 0) SendClientMessage(playerid, COLOR_LIGHTRED, PlayerNeedToLoggedForToPlay), GKick(playerid);
if(PlayerInfo[playerid][pChar] > 0) SetPlayerSkin(playerid,PlayerInfo[playerid][pChar]);
else SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
/*if(ClothesRound[playerid] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "×òî áû ïðîñìàòðèâàòü îäåæäó, èñïîëüçóéòå ñòðåëî÷êè íà ýêðàíå!");
SetPlayerVirtualWorld(playerid, playerid);
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,208.4520,-160.8391,1000.5234);
SetPlayerFacingAngle(playerid,180.9319);
SetPlayerCameraPos(playerid, 207.6285, -166.3627, 1003.5407);
SetPlayerCameraLookAt(playerid, 207.6098, -165.3643, 1003.1712);
ApplyAnimation(playerid,"DEALER"," DEALER_IDLE ",4.1,1,1,1,1,1);
TogglePlayerControllable(playerid, 0);
TextDrawShowForPlayer(playerid,ButtonLeft);
TextDrawShowForPlayer(playerid,ButtonRight);
TextDrawShowForPlayer(playerid,ButtonSelect);
SelectTextDraw(playerid, 0x2641FEAA);
SetHealth(playerid,100.00);
if(PlayerInfo[playerid][pSex] == 1) SetPlayerSkin(playerid, JoinReg[0][0]), SelectCharRegID[playerid] = 1, ChosenSkin[playerid] = JoinReg[0][0];
else SetPlayerSkin(playerid, JoinReg[5][0]), SelectCharRegID[playerid] = 1, ChosenSkin[playerid] = JoinReg[5][0];
}
else if(ClothesRound[playerid] == 2)
{
SendClientMessage(playerid, COLOR_YELLOW, "×òîáû ïðîñìàòðèâàòü îäåæäó, èñïîëüçóéòå ñòðåëî÷êó =>, äëÿ âûáîðà íàæìèòå 'SELECT'");
SetPlayerVirtualWorld(playerid, playerid);
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,208.4520,-160.8391,1000.5234);
SetPlayerFacingAngle(playerid,180.9319);
SetPlayerCameraPos(playerid, 207.6285, -166.3627, 1003.5407);
SetPlayerCameraLookAt(playerid, 207.6098, -165.3643, 1003.1712);
ApplyAnimation(playerid,"DEALER"," DEALER_IDLE ",4.1,1,1,1,1,1);
TogglePlayerControllable(playerid, 0);
SelectTextDraw(playerid, 0x2641FEAA);
TextDrawShowForPlayer(playerid,ButtonRight);
TextDrawShowForPlayer(playerid,ButtonSelect);
if(SelectCharID[playerid] == F_MAYOR) SetPlayerSkin(playerid, JoinPed[0][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[0][0];
if(SelectCharID[playerid] == F_POLICE_LS || SelectCharID[playerid] == F_POLICE_SF || SelectCharID[playerid] == F_POLICE_LV) SetPlayerSkin(playerid, JoinPed[6][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[6][0];
if(SelectCharID[playerid] == F_FBI || SelectCharID[playerid] == F_CIA) SetPlayerSkin(playerid, JoinPed[14][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[14][0];
if(SelectCharID[playerid] == F_HOSPITAL) SetPlayerSkin(playerid, JoinPed[19][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[19][0];
if(SelectCharID[playerid] == F_LIC) SetPlayerSkin(playerid, JoinPed[25][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[25][0];
if(SelectCharID[playerid] == F_GROVE) SetPlayerSkin(playerid, JoinPed[36][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[36][0];
if(SelectCharID[playerid] == F_BALLAS) SetPlayerSkin(playerid, JoinPed[32][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[32][0];
if(SelectCharID[playerid] == F_AZTECAS) SetPlayerSkin(playerid, JoinPed[43][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[43][0];
if(SelectCharID[playerid] == F_VAGOS) SetPlayerSkin(playerid, JoinPed[47][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[47][0];
if(SelectCharID[playerid] == F_RIFA) SetPlayerSkin(playerid, JoinPed[51][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[51][0];
if(SelectCharID[playerid] == F_ARMY) SetPlayerSkin(playerid, JoinPed[30][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[30][0];
if(SelectCharID[playerid] == F_YAKUZA) SetPlayerSkin(playerid, JoinPed[58][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[58][0];
if(SelectCharID[playerid] == F_RM) SetPlayerSkin(playerid, JoinPed[65][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[65][0];
if(SelectCharID[playerid] == F_LCN) SetPlayerSkin(playerid, JoinPed[71][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[71][0];
if(SelectCharID[playerid] == F_NEWS) SetPlayerSkin(playerid, JoinPed[75][0]),SelectCharPlace[playerid] = 1, ChosenSkin[playerid] = JoinPed[75][0];
}
else if(ClothesRound[playerid] == 3)
{
new string[128];
SendClientMessage(playerid, COLOR_YELLOW, "Âûáåðèòå ñåáå ïîäõîäÿùóþ îäåæäó, ïîñëå âûáîðà íàæìèòå 'SELECT', äëÿ îòìåíû íàæìèòå 'CANCEL'");
SendClientMessage(playerid, COLOR_LIGHTRED, "×òîáû ïðîñìîòðåòü îäåæäó, èñïîëüçóéòå ñòðåëî÷êè <= èëè =>");
SetPlayerVirtualWorld(playerid, playerid);
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,208.4520,-160.8391,1000.5234);
SetPlayerFacingAngle(playerid,180.9319);
SetPlayerCameraPos(playerid, 207.6285, -166.3627, 1003.5407);
SetPlayerCameraLookAt(playerid, 207.6098, -165.3643, 1003.1712);
ApplyAnimation(playerid,"DEALER"," DEALER_IDLE ",4.1,1,1,1,1,1);
TogglePlayerControllable(playerid, 0);
TextDrawShowForPlayer(playerid,ButtonRight);
TextDrawShowForPlayer(playerid,ButtonSelect);
TextDrawShowForPlayer(playerid,ButtonCancel);
TextDrawShowForPlayer(playerid,ButtonLeft);
SelectTextDraw(playerid, 0x2641FEAA);
//PlayerSpawned[playerid] = 1;
if(PlayerInfo[playerid][pSex] == 1)
{
SelectCharPlace[playerid] = 0;
SetPlayerSkin(playerid, JoinShopM[SelectCharPlace[playerid]][0]);
format(string, 128, "~b~~n~~n~~n~~n~~n~~n~PRICE: ~w~%i",JoinShopM[SelectCharPlace[playerid]][1]);
}
else
{
SelectCharPlace[playerid] = 0;
SetPlayerSkin(playerid, JoinShopF[SelectCharPlace[playerid]][0]);
format(string, 128, "~b~~n~~n~~n~~n~~n~~n~PRICE: ~w~%i",JoinShopF[SelectCharPlace[playerid]][1]);
}
GameTextForPlayer(playerid, string, 2000, 3);
}*/
//else
//{
if(PlayerInfo[playerid][pJail] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.1425,77.4712,1001.0391);
SCM(playerid,-1,"Action = 2. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
SetPlayerFacingAngle(playerid, 263.0160);
new string[128];
format(string, 80, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~JAILED: ~w~%s", PlayerInfo[playerid][pJailTime]-10);
GameTextForPlayer(playerid, string, 1000, 3);
SendClientMessage(playerid, COLOR_LIGHTRED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
PlayerSpawned[playerid] = 1;
return true;
}
if(PlayerInfo[playerid][pJail] == 2)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,219.5400,109.9767,999.0156);
SetPlayerFacingAngle(playerid, 1.0000);
SCM(playerid,-1,"Action = 3. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
new string[128];
format(string, 80, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~JAILED: ~w~%s", PlayerInfo[playerid][pJailTime]-10);
GameTextForPlayer(playerid, string, 1000, 3);
SendClientMessage(playerid, COLOR_LIGHTRED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
PlayerSpawned[playerid] = 1;
return true;
}
if(PlayerInfo[playerid][pJail] == 3)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,285.7703,286.7446,996.5789);
SetPlayerFacingAngle(playerid, 0.0000);
new string[128];
format(string, 80, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~JAILED: ~w~%s", PlayerInfo[playerid][pJailTime]-10);
GameTextForPlayer(playerid, string, 1000, 3);
SendClientMessage(playerid, COLOR_LIGHTRED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
PlayerSpawned[playerid] = 1;
SCM(playerid,-1,"Action = 4. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
return true;
}
if(PlayerInfo[playerid][pJail] == 4)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,193.4487,175.4382,1003.0234);
SetPlayerFacingAngle(playerid, 0.0000);
new string[128];
format(string, 80, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~JAILED: ~w~%s", PlayerInfo[playerid][pJailTime]-10);
GameTextForPlayer(playerid, string, 1000, 3);
SendClientMessage(playerid, COLOR_LIGHTRED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
SCM(playerid,-1,"Action = 5. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
return true;
}
else if(PlayerInfo[playerid][pHospital] == 1)
{
TogglePlayerControllable(playerid,false);
SetTimerEx("PlayerToggle", 1600, false, "d", playerid);
SetHealth(playerid, 15.0);
SetPlayerFacingAngle(playerid, 90);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,1178.7709,-1378.5133,13.8859);
SCM(playerid,-1,"Action = 6. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
PlayerSpawned[playerid] = 1;
return true;
}
if(PlayerInfo[playerid][pSpawnChange] != 0)
{
for(new i = 1; i <= TOTALHOUSE;i++)
{
if(!strcmp(HouseInfo[i][hOwner],PlayerInfo[playerid][pSendername],true))
{
SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hVirtual]);
SetPVarInt(playerid, "PlayerHouse", i);
PlayerSpawned[playerid] = 1;
SCM(playerid,-1,"Action = 7. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
return true;
}
}
//}
//=========================== Spawns Ôðàêöèé ===========================
switch(PlayerInfo[playerid][pMember]) // Spawns ïðèåçæèõ
{
case 0:
if(PlayerInfo[playerid][pLevel] >= 1 && PlayerInfo[playerid][pLevel] <= 10000)
{
TogglePlayerControllable(playerid,false);
SetPlayerPos(playerid,1154.3702,-1768.4338,16.5938);
SetPlayerFacingAngle(playerid, 359.7278);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
SetTimerEx("PlayerToggle", 1000, false, "d", playerid);
SCM(playerid,-1,"SP = 1. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_MAYOR:
{
SetPlayerPos(playerid,337.1920,193.5128,1014.1797);
SetPlayerFacingAngle(playerid, 265.8);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid, 1);
SCM(playerid,-1,"SP = 2. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_POLICE_LS:
{
SetPlayerPos(playerid,234.1521,71.5594,1005.0391);
SetPlayerFacingAngle(playerid, 358.0);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 0);
SCM(playerid,-1,"SP = 3. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_POLICE_SF:
{
SetPlayerPos(playerid,225.1647,121.0442,999.0786);
SetPlayerFacingAngle(playerid, 89.0);
SetPlayerInterior(playerid, 10);
SetPlayerVirtualWorld(playerid, 0);
SCM(playerid,-1,"SP = 4. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_FBI:
{
SetPlayerPos(playerid,323.5093,286.0427,1007.3959);
SetPlayerFacingAngle(playerid, 359.3);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SCM(playerid,-1,"SP = 5. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_HOSPITAL:
{
SetPlayerPos(playerid,1178.8590,-1347.5291,13.8859);
SetPlayerFacingAngle(playerid, 67.5002);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SCM(playerid,-1,"SP = 6. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_LIC:
{
SetPlayerPos(playerid,-2032.8049,-117.4445,1035.1719);
SetPlayerFacingAngle(playerid, 269.9);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 1);
SCM(playerid,-1,"SP = 7. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_GROVE:
{
t_SetPlayerPos(playerid,2483.2910,-1637.9647,14.3169);
SetPlayerFacingAngle(playerid, 225.2027);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SetPVarInt(playerid,"Hospital",0);
SCM(playerid,-1,"SP = 8. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_BALLAS:
{
t_SetPlayerPos(playerid,2488.5366,-1987.3193,13.8949);
SetPlayerFacingAngle(playerid, 130.5200);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SetPVarInt(playerid,"Hospital",0);
SCM(playerid,-1,"SP = 9. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_RIFA:
{
t_SetPlayerPos(playerid,2172.1450,-1780.1101,13.5756);
SetPlayerFacingAngle(playerid, 189.2710);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SetPVarInt(playerid,"Hospital",0);
SCM(playerid,-1,"SP = 10. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_AZTECAS:
{
t_SetPlayerPos(playerid,1689.3876,-2094.1104,13.9339);
SetPlayerFacingAngle(playerid,49.1287);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SetPVarInt(playerid,"Hospital",0);
SCM(playerid,-1,"SP = 11. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_VAGOS:
{
t_SetPlayerPos(playerid,2799.4390,-1620.4969,14.5990);
SetPlayerFacingAngle(playerid, 301.3435);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SetPVarInt(playerid,"Hospital",0);
SCM(playerid,-1,"SP = 12. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_ARMY:
{
SetPlayerPos(playerid,247.8784,1859.4562,14.0840);
SetPlayerFacingAngle(playerid, 90.2);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SCM(playerid,-1,"SP = 13. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
// return true;
}
case F_CIA:
{
SetPlayerPos(playerid,-1936.6405,646.8841,46.5625);
SetPlayerFacingAngle(playerid,337.4248);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SCM(playerid,-1,"SP = 14. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_LCN:
{
SetPlayerPos(playerid,2541.0574,-1295.1235,1054.6406);
SetPlayerFacingAngle(playerid, 92.2);
SetPlayerInterior(playerid, 2);
SetPlayerVirtualWorld(playerid, 2);
SCM(playerid,-1,"SP = 15. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_YAKUZA:
{
SetPlayerPos(playerid,1265.7104,-793.7453,1084.0078);
SetPlayerFacingAngle(playerid,268.5670);
SetPlayerInterior(playerid, 5);
SetPlayerVirtualWorld(playerid, 1);
SCM(playerid,-1,"SP = 16. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_RM:
{
SetPlayerPos(playerid,2558.9172,-1296.3939,1060.9844);
SetPlayerFacingAngle(playerid, 272.3);
SetPlayerInterior(playerid, 2);
SetPlayerVirtualWorld(playerid, 1);
SCM(playerid,-1,"SP = 17. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_NEWS:
{
SetPlayerPos(playerid,2171.5288,1602.0793,999.9686);
SetPlayerFacingAngle(playerid, 87.7);
SetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, 1);
SCM(playerid,-1,"SP = 18. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
case F_POLICE_LV:
{
SetPlayerPos(playerid,246.0800,186.8824,1008.1719);
SetPlayerFacingAngle(playerid, 178.7634);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 0);
SCM(playerid,-1,"SP = 19. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
//return true;
}
default:
{
TogglePlayerControllable(playerid,false);
SetPlayerPos(playerid,1154.3702,-1768.4338,16.5938);
SetPlayerFacingAngle(playerid, 359.7278);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
SetTimerEx("PlayerToggle", 1000, false, "d", playerid);
SCM(playerid,-1,"SP = 20. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
}
}
}
//PreloadAllAnims(playerid);
PlayerSpawned[playerid] = 1;
SCM(playerid,-1,"Action = 10. Åñëè ïîÿâèëèñü íà ôåðìå ñäåëàéòå ñêðèíøîò!");
return true;
}