Advertisement
Guest User

Untitled

a guest
Sep 6th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. #include <a_samp>
  2. #include <a_npc>
  3.  
  4. new Random;
  5.  
  6. public OnGameModeInit()
  7. {
  8. // NPCS
  9. // veliki klubovi
  10. ConnectNPC("Jyla","striper1");
  11. ConnectNPC("Elena","striper2");
  12. ConnectNPC("Nina","striper3");
  13. ConnectNPC("Lisa","barwoman");
  14. ConnectNPC("Jef","bodyguard1");
  15. // mali klubovi
  16. ConnectNPC("Ioana","striper4");
  17. ConnectNPC("Nikol","striper5");
  18. ConnectNPC("Nick","barman");
  19. ConnectNPC("Josh","bodyguard2");
  20.  
  21. return 1;
  22. }
  23.  
  24. public OnPlayerSpawn(playerid)
  25. {
  26. if(!IsPlayerNPC(playerid)) return 0;
  27.  
  28. new playername[64];
  29. GetPlayerName(playerid,playername,64);
  30.  
  31. if (!strcmp(playername, "Jyla", true))
  32. {
  33. SetPlayerSkin(playerid, 90);
  34. PutPlayerInVehicle(playerid, Random, 0);
  35. return 1;
  36.  
  37. }
  38. else if (!strcmp(playername, "Elena", true))
  39. {
  40. PutPlayerInVehicle(playerid, Random, 0);
  41. SetPlayerSkin(playerid, 152);
  42. return 1;
  43. }
  44. else if (!strcmp(playername, "Jef", true))
  45. {
  46. PutPlayerInVehicle(playerid, Random, 0);
  47. SetPlayerSkin(playerid, 163);
  48. return 1;
  49. }
  50. else if (!strcmp(playername, "Ioana", true))
  51. {
  52. PutPlayerInVehicle(playerid, Random, 0);
  53. SetPlayerSkin(playerid, 152);
  54. return 1;
  55. }
  56. else if (!strcmp(playername, "Nikol", true))
  57. {
  58. PutPlayerInVehicle(playerid, Random, 0);
  59. SetPlayerSkin(playerid, 90);
  60. return 1;
  61. }
  62. else if (!strcmp(playername, "Nick", true))
  63. {
  64. PutPlayerInVehicle(playerid, Random, 0);
  65. SetPlayerSkin(playerid, 29);
  66. return 1;
  67. }
  68. else if (!strcmp(playername, "Josh", true))
  69. {
  70. PutPlayerInVehicle(playerid, Random, 0);
  71. SetPlayerSkin(playerid, 165);
  72. return 1;
  73. }
  74. else if (!strcmp(playername, "Lisa", true))
  75. {
  76. PutPlayerInVehicle(playerid, Random, 0);
  77. SetPlayerSkin(playerid, 192);
  78. return 1;
  79. }
  80. else if (!strcmp(playername, "Nina", true))
  81. {
  82. PutPlayerInVehicle(playerid, Random, 0);
  83. SetPlayerSkin(playerid, 237);
  84. }
  85. return 1;
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement