Advertisement
Gireada

Skin Selector

Feb 16th, 2013
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.89 KB | None | 0 0
  1.  
  2. //==================================================================================================================================================================
  3. //=========================================================================================================================================================================
  4. //========================================================================[Skin Selector]===============================================================================
  5. //=========================================================================[by Gireada]=============================================================================================
  6. //============================================================[Daca te-am ajutat nu sterege creditele]======================================================================
  7. #include <a_samp>
  8. #include <zcmd>
  9. #include <mSelection>
  10.  
  11. new skinlist = mS_INVALID_LISTID;
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.     skinlist = LoadModelSelectionMenu("skins.txt");
  16.     print("\n--------------------------------------");
  17.     print(" Skin Selector by Gireada");
  18.     print("--------------------------------------\n");
  19.     return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24.     return 1;
  25. }
  26.  
  27. main()
  28. {
  29.     print("\n----------------------------------");
  30.     print(" Skin Selector by Gireada");
  31.     print("----------------------------------\n");
  32. }
  33.  
  34.  
  35. CMD:skin(playerid, params[])
  36. {
  37.     ShowModelSelectionMenu(playerid, skinlist, "Alegeti Skin-ul");
  38.     return 1;
  39. }
  40.  
  41. public OnPlayerModelSelection(playerid, response, listid, modelid)
  42. {
  43.     if(listid == skinlist)
  44.     {
  45.         if(response)
  46.         {
  47.             SetPlayerSkin(playerid, modelid);
  48.             SendClientMessage(playerid, 0xFF0000FF, "Imi place noul tau look");
  49.         }
  50.         else SendClientMessage(playerid, 0xFF0000FF, "Arati bine si asa");
  51.         return 1;
  52.     }
  53.     return 1;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement