Guest User

Untitled

a guest
May 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. if(!Player[playerid][HouseSpawn] || Player[playerid][HouseOwn] == -1)
  2. {
  3. new CityId = Player[playerid][City]-1;
  4.  
  5. if(Player[playerid][SkinType] == SKIN_POLICE)
  6. {
  7. SetPlayerPos(playerid, PoliceSpawns[CityId][0], PoliceSpawns[CityId][1], PoliceSpawns[CityId][2]);
  8. SetPlayerFacingAngle(playerid, PoliceSpawns[CityId][3]);
  9. }
  10. else if(Player[playerid][SkinType] == SKIN_MEDI)
  11. {
  12. SetPlayerPos(playerid, MediSpawns[CityId][0], MediSpawns[CityId][1], MediSpawns[CityId][2]);
  13. SetPlayerFacingAngle(playerid, MediSpawns[CityId][3]);
  14. }
  15. else
  16. {
  17. if(CityId == 0)
  18. {
  19. new RandomSpawn = random(sizeof(LSSpawns));
  20. SetPlayerPos(playerid, LSSpawns[RandomSpawn][0], LSSpawns[RandomSpawn][1], LSSpawns[RandomSpawn][2]);
  21. SetPlayerFacingAngle(playerid, LSSpawns[RandomSpawn][3]);
  22. }
  23. else if(CityId == 1)
  24. {
  25. new RandomSpawn = random(sizeof(SFSpawns));
  26. SetPlayerPos(playerid, SFSpawns[RandomSpawn][0], SFSpawns[RandomSpawn][1], SFSpawns[RandomSpawn][2]);
  27. SetPlayerFacingAngle(playerid, SFSpawns[RandomSpawn][3]);
  28. }
  29. else if(CityId == 2)
  30. {
  31. new RandomSpawn = random(sizeof(LVSpawns));
  32. SetPlayerPos(playerid, LVSpawns[RandomSpawn][0], LVSpawns[RandomSpawn][1], LVSpawns[RandomSpawn][2]);
  33. SetPlayerFacingAngle(playerid, LVSpawns[RandomSpawn][3]);
  34. }
  35. }
  36.  
  37. if(Player[playerid][City] == CITY_LS_SP)
  38. Player[playerid][City] = CITY_LS;
  39. }
  40. else
  41. {
  42. if(Player[playerid][InHouse] != Player[playerid][HouseOwn])
  43. PlayerEnterHouse(playerid, Player[playerid][HouseOwn]);
  44. }
Add Comment
Please, Sign In to add comment