Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <mselection>
- new skinypolicji;
- #define CUSTOM_SKINS_MENU 1 // ------- policja wybieralka
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- skinypolicji = CreatePickup(1275, 2, 2295.4111,2460.0898,10.8203, -1);
- return 1;
- }
- #endif
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == skinypolicji)
- {
- new skins1[5];
- skins1[0] = 281;
- skins1[1] = 282;
- skins1[2] = 283;
- skins1[3] = 284;
- skins1[4] = 286;
- ShowModelSelectionMenuEx(playerid, skins1, 12, "Wybierz skin", CUSTOM_SKINS_MENU, 16.0, 0.0, -55.0);
- }
- return 1;
- }
- public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
- {
- if(extraid == CUSTOM_SKINS_MENU)
- {
- if(response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Skin został zmieniony pomyślnie.");
- SetPlayerSkin(playerid, modelid);
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 24, 242);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 25, 100);
- GivePlayerWeapon(playerid, 41, 1000);
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Anulowałeś wybór skina.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement