Hosse
Изучающий
- Регистрация
- 17 Ноя 2011
- Сообщения
- 613
- Лучшие ответы
- 0
- Репутация
- 224
PHP:
if ((gTeam[playerid]) == 1)
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if(PlayerInfo[playerid][pFMember] != 255)
{
new family = PlayerInfo[playerid][pFMember];
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
return 1;
}
else
{
if(PlayerInfo[playerid][pSex] == 1)
{ SetPlayerSkin(playerid,299);//пробуем бомжа, Спавн нубов
SetPlayerPos(playerid,2270.9829,1633.4546,1084.2344);
SetPlayerFacingAngle(playerid,179.8082);
}
else if(PlayerInfo[playerid][pSex] == 2)
{
SetPlayerSkin(playerid,216);//пробуем бомжиху, Спавн нубов
SetPlayerPos(playerid,2270.9829,1633.4546,1084.2344);
}
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
}
return 1;
}
return 1;
}