Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock SetPlayerSpawn(playerid)
- {
- PlayerHealth[playerid] = 0;
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "[VS-RP] Необходимо авторизоваться!");
- Kick(playerid);
- }
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pHP] > 100)
- {
- PlayerInfo[playerid][pHP] = 100;
- }
- if(PlayerInfo[playerid][pZvezdi] >= 1)
- {
- SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pZvezdi]);
- WantedPoints[playerid]++;
- }
- ResetPlayerWeapons(playerid);
- SetPlayerHealthAC(playerid, PlayerInfo[playerid][pHP]);
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
- SetPlayerWeapons(playerid);
- new house = PlayerInfo[playerid][pPhousekey];
- connecttime[playerid] = 0;
- SetPlayerToTeamColor(playerid);
- SetCameraBehindPlayer(playerid);
- if(PlayerInfo[playerid][pTut] == 0)
- {
- SetPlayerHealthAC(playerid,100);
- PlayerInfo[playerid][pHP] = 100;
- SetPlayerCameraPos(playerid, 291.2647,-1253.8707,152.0083);
- SetPlayerCameraLookAt(playerid, 291.2647,-1253.8707,152.0083);
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,"{FFFFFC}Регистрация","{FFFFFC}Укажите ваш пол:\n","Муж.","Жен.");
- TogglePlayerControllable(playerid, 0);
- }
- if(PlayerInfo[playerid][pMember] > 0)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
- }
- if(PlayerInfo[playerid][pMember] <= 0)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
- }
- if(ktotolox[playerid] == 1)
- {
- SetPPos(playerid, 372.3439,-29.4278,1076.4651);
- ktotolox[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Следите за вашим здоровьем...");
- return true;
- }
- if(PlayerInfo[playerid][pJailed] == 1)
- {
- if(PlayerInfo[playerid][pMestoJail] == 1)
- {
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid,264.1425,77.4712,1001.0391);
- SetPlayerFacingAngle(playerid, 263.0160);
- return true;
- }
- if(PlayerInfo[playerid][pMestoJail] == 2)
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid,219.5400,109.9767,999.0156);
- SetPlayerFacingAngle(playerid, 1.0000);
- return true;
- }
- if(PlayerInfo[playerid][pMestoJail] == 3)
- {
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid,198.3642,161.8103,1003.0300);
- SetPlayerFacingAngle(playerid, 1.0000);
- return true;
- }
- }
- else if(PlayerInfo[playerid][pJailed] == 4)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,5513.1113,1243.8813,23.1886);
- SetPlayerFacingAngle(playerid, 0.7536);
- return true;
- }
- SetPlayerVirtualWorld(playerid,0);
- if(house != 255)
- {
- if(PlayerInfo[playerid][pMember] == 0)
- {
- if(PlayerInfo[playerid][pSex] == 1)
- {
- if(PlayerInfo[playerid][pSpawnChange] == 1)
- {
- SetPlayerInterior(playerid,HouseInfo[house][hInt]);
- SetPPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);
- PlayerInfo[playerid][pLocal] = house;
- PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
- SetPlayerVirtualWorld(playerid, house+50);
- return true;
- }
- }
- }
- }
- if(house != 255)
- {
- if(PlayerInfo[playerid][pMember] == 0)
- {
- if(PlayerInfo[playerid][pSex] == 2)
- {
- if(PlayerInfo[playerid][pSpawnChange] == 1)
- {
- SetPlayerInterior(playerid,HouseInfo[house][hInt]);
- SetPPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);
- PlayerInfo[playerid][pLocal] = house;
- PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
- SetPlayerVirtualWorld(playerid, house+50);
- return true;
- }
- }
- }
- }
- if(house != 255)
- {
- if(PlayerInfo[playerid][pSpawnChange] == 1)
- {
- SetPlayerInterior(playerid,HouseInfo[house][hInt]);
- SetPPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);
- PlayerInfo[playerid][pLocal] = house;
- PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
- SetPlayerVirtualWorld(playerid, house+50);
- return true;
- }
- }
- switch(PlayerInfo[playerid][pMember])
- {
- case 2:
- {
- SetPlayerInterior(playerid, 5);
- SetPPos(playerid, 322.4131,316.9056,999.1484);
- PlayerInfo[playerid][pInt] = 10;
- SetPlayerFacingAngle(playerid, 180.5557);
- return true;
- }
- case 3:
- {
- if(forma[playerid] == 1)
- {
- SetPlayerSkin(playerid, 252);
- SetPlayerInterior(playerid, 0);
- SetPPos(playerid, -1346.2050,492.3983,11.2027);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- SetPlayerInterior(playerid, 0);
- SetPPos(playerid, -1346.2050,492.3983,11.2027);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- case 10:
- {
- SetPlayerInterior(playerid, 10);
- SetPPos(playerid, 225.1647,121.0442,999.0786);
- SetPlayerFacingAngle(playerid, 89.0733);
- PlayerInfo[playerid][pInt] = 10;
- return true;
- }
- case 19:
- {
- if(forma[playerid] == 1)
- {
- SetPlayerSkin(playerid, 252);
- SetPlayerInterior(playerid, 0);
- SetPPos(playerid, 241.7503,1852.6790,8.7578);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- SetPlayerInterior(playerid, 0);
- SetPPos(playerid, 241.7503,1852.6790,8.7578);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- case 21:
- {
- SetPlayerInterior(playerid, 3);
- SetPPos(playerid, 211.3636,184.3113,1003.0313);
- SetPlayerFacingAngle(playerid, 174.3579);
- PlayerInfo[playerid][pInt] = 122;
- SetPlayerVirtualWorld(playerid, 122);
- return true;
- }
- case 9:
- {
- SetPlayerInterior(playerid, 3);
- SetPPos(playerid, 373.8919,192.2131,1014.1875);
- SetPlayerFacingAngle(playerid, 182.7769);
- PlayerInfo[playerid][pInt] = 3;
- SetPlayerVirtualWorld(playerid, 1);
- return true;
- }
- case 16:
- {
- SetPPos(playerid, 2170.2366,1599.8336,999.9702);
- SetPlayerInterior(playerid,1);
- SetPlayerFacingAngle(playerid, 90.1896);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- lNews[playerid] = 0;
- return true;
- }
- case 6:
- {
- SetPlayerInterior(playerid, 5);
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
- SetPPos(playerid, 1265.7104,-793.7453,1084.0078);
- SetPlayerCheckpoint(playerid,1261.6259,-781.8162,1084.0078,1.0);
- PlayerInfo[playerid][pInt] = 5;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- case 14:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
- SetPlayerInterior(playerid, 5);
- SetPPos(playerid, 1265.7104,-793.7453,1084.0078);
- SetPlayerCheckpoint(playerid,1261.6259,-781.8162,1084.0078,1.0);
- PlayerInfo[playerid][pInt] = 5;
- SetPlayerVirtualWorld(playerid, 1);
- return true;
- }
- case 11:
- {
- SetPPos(playerid, -2031.7778,-117.3789,1035.1719);
- SetPlayerFacingAngle(playerid, 268.5241);
- SetPlayerInterior(playerid,3);
- PlayerInfo[playerid][pInt] = 3;
- SetPlayerVirtualWorld(playerid, 1);
- return true;
- }
- case 5:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
- SetPlayerInterior(playerid, 5);
- SetPPos(playerid, 1265.7104,-793.7453,1084.0078);
- SetPlayerCheckpoint(playerid,1261.6259,-781.8162,1084.0078,1.0);
- PlayerInfo[playerid][pInt] = 5;
- SetPlayerVirtualWorld(playerid, 2);
- return true;
- }
- case 4:
- {
- SetPlayerInterior(playerid, 15);
- SetPlayerVirtualWorld(playerid, 4);
- PlayerInfo[playerid][pInt] = 15;
- SetPPos(playerid, 364.2723,-24.0404,1076.4578);
- SetPlayerFacingAngle(playerid, 181.0575);
- Medics += 1;
- return true;
- }
- case 12:
- {
- SetPPos(playerid, -61.2984,1364.5847,1080.2109);
- SetPlayerFacingAngle(playerid, 100);
- SetPlayerInterior(playerid,6);
- SetPlayerVirtualWorld(playerid, 34);
- PlayerInfo[playerid][pInt] = 6;
- return true;
- }
- case 18:
- {
- SetPlayerInterior(playerid, 8);
- SetPlayerVirtualWorld(playerid, 63);
- SetPPos(playerid, 2817.0813,-1168.2172,1025.5778);
- RemovePlayerAttachedObject(playerid, 1);
- PlayerInfo[playerid][pInt] = 0;
- return true;
- }
- case 17:
- {
- SetPlayerFacingAngle(playerid, 90.4248);
- SetPPos(playerid, -49.7558,1400.3553,1084.4297);
- SetPlayerInterior(playerid,8);
- SetPlayerVirtualWorld(playerid, 36);
- PlayerInfo[playerid][pInt] = 0;
- return true;
- }
- case 13:
- {
- SetPlayerInterior(playerid, 4);
- SetPlayerVirtualWorld(playerid, 75);
- SetPlayerFacingAngle(playerid, 263.0497);
- SetPPos(playerid, 308.7524,306.6759,1003.3047);
- PlayerInfo[playerid][pInt] = 0;
- return true;
- }
- case 15:
- {
- SetPlayerInterior(playerid, 3);
- SetPlayerVirtualWorld(playerid, 0);
- SetPPos(playerid, 2492.3748,-1703.7333,1018.3438);
- SetPlayerFacingAngle(playerid, 0.191693);
- PlayerInfo[playerid][pInt] = 3;
- SetPlayerVirtualWorld(playerid, 1);
- return true;
- }
- case 8:
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1280.3894,1271.6595,10.8281);
- SetPlayerFacingAngle(playerid, 316.8163);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- case 1:
- {
- SetPlayerInterior(playerid, 6);
- SetPPos(playerid, 235.8750,73.5106,1005.0391);
- PlayerInfo[playerid][pInt] = 6;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- case 7:
- {
- SetPlayerInterior(playerid, 3);
- SetPPos(playerid, 373.8919,192.2131,1014.1875);
- SetPlayerFacingAngle(playerid, 182.7769);
- PlayerInfo[playerid][pInt] = 3;
- SetPlayerVirtualWorld(playerid, 0);
- return true;
- }
- }
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- new rands = random(sizeof(RandomSpawns));
- SetPPos(playerid, RandomSpawns[rands][0], RandomSpawns[rands][1], RandomSpawns[rands][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[rands][3]);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement