Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. public OnPlayerRequestClass(playerid, classid)
  2. {
  3.  
  4.  
  5.  
  6. AddPlayerClassEx(1, 3, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  7. AddPlayerClassEx(1, 6, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  8. AddPlayerClassEx(1, 17, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  9. AddPlayerClassEx(1, 19, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  10. AddPlayerClassEx(1, 21, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  11. AddPlayerClassEx(1, 23, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  12. AddPlayerClassEx(1, 28, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  13. AddPlayerClassEx(1, 29, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  14. AddPlayerClassEx(1, 37, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  15. AddPlayerClassEx(1, 46, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  16. AddPlayerClassEx(1, 49, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  17. AddPlayerClassEx(1, 91, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  18. AddPlayerClassEx(1, 138, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  19. AddPlayerClassEx(1, 140, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  20. AddPlayerClassEx(1, 233, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  21. AddPlayerClassEx(2, 300, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  22. AddPlayerClassEx(2, 301, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  23. AddPlayerClassEx(2, 302, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  24. AddPlayerClassEx(2, 306, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  25. AddPlayerClassEx(2, 307, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  26. AddPlayerClassEx(2, 309, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  27. AddPlayerClassEx(2, 310, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  28. AddPlayerClassEx(2, 283, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  29. AddPlayerClassEx(2, 288, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  30.  
  31. SetPlayerInterior(playerid,5);
  32. SetPlayerPos(playerid,1275.7145,-790.4781,1089.9375);
  33. SetPlayerCameraPos(playerid,1277.1993,-793.9561,1089.9375);
  34. SetPlayerCameraLookAt(playerid,1275.7145,-790.4781,1089.9375);
  35. ApplyAnimation(playerid, "DANCING", "DAN_Left_A", 2.1, 1, 1, 0, 1, 1, 1);
  36. SetPlayerFacingAngle(playerid,270.5306);
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. if(PlayerInfo[playerid][pJailed] == 1)
  46. {
  47. SetTimerEx("Spawn", 30, false, "i", playerid);
  48. return 1;
  49. }
  50.  
  51.  
  52.  
  53. if(PlayerInfo[playerid][FracID] !=0)
  54. {
  55. new frak = PlayerInfo[playerid][FracID];
  56.  
  57. if(frak == 3)
  58. {
  59.  
  60. AddPlayerClassEx(3, 285, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  61.  
  62. }
  63. if(frak == 4)
  64. {
  65.  
  66. AddPlayerClassEx(4, 287, 1275.7145,-790.4781,1089.9375,206.3436, 0, 0, 0, 0, 0, 0);
  67.  
  68. }
  69. }
  70.  
  71. new string[128];
  72. new team = GetPlayerTeam(playerid);
  73. if (team == 1)
  74. {
  75. format(string, sizeof(string), "~y~> ~p~Civilian ~y~<");
  76. GameTextForPlayer(playerid,string,3500,6);
  77. }
  78. else if (team == 2)
  79. {
  80. format(string, sizeof(string), "~b~> ~p~Cops ~b~<");
  81. GameTextForPlayer(playerid,string,3500,6);
  82.  
  83. }
  84. else if (team == 3)
  85. {
  86. format(string, sizeof(string), "~b~> ~p~SWAT ~b~<");
  87. GameTextForPlayer(playerid,string,3500,6);
  88.  
  89. }
  90. else if (team == 4)
  91. {
  92. format(string, sizeof(string), "~b~> ~p~ARMY ~b~<");
  93. GameTextForPlayer(playerid,string,3500,6);
  94.  
  95. }
  96. return 1;
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement