Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. #include <a_samp>
  2. #include <mselection>
  3. new skinypolicji;
  4. #define CUSTOM_SKINS_MENU 1 // ------- policja wybieralka
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. skinypolicji = CreatePickup(1275, 2, 2295.4111,2460.0898,10.8203, -1);
  10. return 1;
  11. }
  12.  
  13.  
  14. #endif
  15.  
  16.  
  17. public OnPlayerPickUpPickup(playerid, pickupid)
  18. {
  19. if(pickupid == skinypolicji)
  20. {
  21. new skins1[5];
  22. skins1[0] = 281;
  23. skins1[1] = 282;
  24. skins1[2] = 283;
  25. skins1[3] = 284;
  26. skins1[4] = 286;
  27.  
  28. ShowModelSelectionMenuEx(playerid, skins1, 12, "Wybierz skin", CUSTOM_SKINS_MENU, 16.0, 0.0, -55.0);
  29.  
  30. }
  31. return 1;
  32. }
  33. public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
  34. {
  35. if(extraid == CUSTOM_SKINS_MENU)
  36. {
  37. if(response)
  38. {
  39.  
  40. SendClientMessage(playerid, 0xFF0000FF, "Skin został zmieniony pomyślnie.");
  41.  
  42.  
  43. SetPlayerSkin(playerid, modelid);
  44. GivePlayerWeapon(playerid, 3, 1);
  45. GivePlayerWeapon(playerid, 24, 242);
  46. GivePlayerWeapon(playerid, 25, 200);
  47. GivePlayerWeapon(playerid, 25, 100);
  48. GivePlayerWeapon(playerid, 41, 1000);
  49.  
  50.  
  51.  
  52. }
  53.  
  54. else SendClientMessage(playerid, 0xFF0000FF, "Anulowałeś wybór skina.");
  55.  
  56.  
  57. }
  58. return 1;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement