Advertisement
fiki574_CRO

/objects Script

May 26th, 2011
1,593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.63 KB | None | 0 0
  1. //------------------------------------\\
  2. //  Objects Menu by fiki574_CRO   \\
  3. //------------------------------------\\
  4.  
  5. #include <a_samp>
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnPlayerCommandText(playerid, cmdtext[])
  9. {
  10.     if (strcmp("/objects", cmdtext, true, 10) == 0)
  11.     {
  12.         ShowPlayerDialog(playerid,99,DIALOG_STYLE_LIST,"{FF002B}OBJECTS","Sprunk\nDragon\nBarrel 1\nBarrel 2\nSmoke Mach\nHaybreak\nSAM Site\nTorch\nSkull\nUFO Sign\nUFO Light\nPetrol Pump\nAmmo Boxes\n{FF002B}Remove Object","Select","Cancel");
  13.         return 1;
  14.     }
  15.     return 0;
  16. }
  17.  
  18. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  19. {
  20.     if(response)
  21.     {
  22.     switch(dialogid == 99)
  23.         {
  24.         case 1:
  25.             {
  26.             switch(listitem)
  27.             {
  28.                 case 0:
  29.                 {
  30.                     SetPlayerAttachedObject(playerid,1,13562,true,0.0,0.0,0.0,0.0);
  31.                     GameTextForPlayer(playerid,"~g~SPRUNK ~w~CREATED",4000,3);
  32.                 }
  33.                 case 1:
  34.                 {
  35.                     SetPlayerAttachedObject(playerid,1,3528,true,0.0,0.0,0.0,0.0);
  36.                     GameTextForPlayer(playerid,"~g~DRAGON ~w~CREATED",4000,3);
  37.                 }
  38.                 case 2:
  39.                 {
  40.                     SetPlayerAttachedObject(playerid,1,1218,true,0.0,0.0,0.0,0.0);
  41.                     GameTextForPlayer(playerid,"~g~BARREL 1 ~w~CREATED",4000,3);
  42.                 }
  43.                 case 3:
  44.                 {
  45.                     SetPlayerAttachedObject(playerid,1,1217,true,0.0,0.0,0.0,0.0);
  46.                     GameTextForPlayer(playerid,"~g~BARREL 2 ~w~CREATED",4000,3);
  47.                 }
  48.                 case 4:
  49.                 {
  50.                     SetPlayerAttachedObject(playerid,1,1780,true,0.0,0.0,0.0,0.0);
  51.                     GameTextForPlayer(playerid,"~g~SMOKE MACH ~w~CREATED",4000,3);
  52.                 }
  53.                 case 5:
  54.                 {
  55.                     SetPlayerAttachedObject(playerid,1,3374,true,0.0,0.0,0.0,0.0);
  56.                     GameTextForPlayer(playerid,"~g~HAYBREAK ~w~CREATED",4000,3);
  57.                 }
  58.                 case 6:
  59.                 {
  60.                     SetPlayerAttachedObject(playerid,1,3267,true,0.0,0.0,0.0,0.0);
  61.                     GameTextForPlayer(playerid,"~g~SAM SITE ~w~CREATED",4000,3);
  62.                 }
  63.                 case 7:
  64.                 {
  65.                     SetPlayerAttachedObject(playerid,1,3461,true,0.0,0.0,0.0,0.0);
  66.                     GameTextForPlayer(playerid,"~g~TIKI TORCH ~w~CREATED",4000,3);
  67.                 }
  68.                 case 8:
  69.                 {
  70.                     SetPlayerAttachedObject(playerid,1,3524,true,0.0,0.0,0.0,0.0);
  71.                     GameTextForPlayer(playerid,"~g~SKULL ~w~CREATED",4000,3);
  72.                 }
  73.                 case 9:
  74.                 {
  75.                     SetPlayerAttachedObject(playerid,1,16778,true,0.0,0.0,0.0,0.0);
  76.                     GameTextForPlayer(playerid,"~g~UFO SIGN ~w~CREATED",4000,3);
  77.                 }
  78.                 case 10:
  79.                 {
  80.                     SetPlayerAttachedObject(playerid,1,16779,true,0.0,0.0,0.0,0.0);
  81.                     GameTextForPlayer(playerid,"~g~UFO LIGHT ~w~CREATED",4000,3);
  82.                 }
  83.                 case 11:
  84.                 {
  85.                     SetPlayerAttachedObject(playerid,1,1686,true,0.0,0.0,0.0,0.0);
  86.                     GameTextForPlayer(playerid,"~g~PETROL PUMP ~w~CREATED",4000,3);
  87.                 }
  88.                 case 12:
  89.                 {
  90.                     ShowPlayerDialog(playerid,98,DIALOG_STYLE_LIST,"{FF002B}OBJECTS > AMMO BOXES","Box 1\nBox 2\nBox 3\nBox 4\nBox 5\nBox 6\n{FF002B}Return","Select","Cancel");
  91.                 }
  92.                 case 13:
  93.                 {
  94.                     RemovePlayerAttachedObject(playerid,1);
  95.                     GameTextForPlayer(playerid,"~g~OBJECT ~w~REMOVED",4000,3);
  96.                 }
  97.             }
  98.         }
  99.     }
  100.     switch(dialogid == 98)
  101.         {
  102.         case 1:
  103.             {
  104.             switch(listitem)
  105.             {
  106.                 case 0:
  107.                 {
  108.                     SetPlayerAttachedObject(playerid,1,2040,true,0.0,0.0,0.0,0.0);
  109.                     GameTextForPlayer(playerid,"~g~AMMO BOX 1 ~w~CREATED",4000,3);
  110.                 }
  111.                 case 1:
  112.                 {
  113.                     SetPlayerAttachedObject(playerid,1,2041,true,0.0,0.0,0.0,0.0);
  114.                     GameTextForPlayer(playerid,"~g~AMMO BOX 2 ~w~CREATED",4000,3);
  115.                 }
  116.                 case 2:
  117.                 {
  118.                     SetPlayerAttachedObject(playerid,1,2042,true,0.0,0.0,0.0,0.0);
  119.                     GameTextForPlayer(playerid,"~g~AMMO BOX 3 ~w~CREATED",4000,3);
  120.                 }
  121.                 case 3:
  122.                 {
  123.                     SetPlayerAttachedObject(playerid,1,2043,true,0.0,0.0,0.0,0.0);
  124.                     GameTextForPlayer(playerid,"~g~AMMO BOX 4 ~w~CREATED",4000,3);
  125.                 }
  126.                 case 4:
  127.                 {
  128.                     SetPlayerAttachedObject(playerid,1,2358,true,0.0,0.0,0.0,0.0);
  129.                     GameTextForPlayer(playerid,"~g~AMMO BOX 5 ~w~CREATED",4000,3);
  130.                 }
  131.                 case 5:
  132.                 {
  133.                     SetPlayerAttachedObject(playerid,1,2359,true,0.0,0.0,0.0,0.0);
  134.                     GameTextForPlayer(playerid,"~g~AMMO BOX 6 ~w~CREATED",4000,3);
  135.                 }
  136.                 case 6:
  137.                 {
  138.                     ShowPlayerDialog(playerid,99,DIALOG_STYLE_LIST,"{FF002B}OBJECTS","Sprunk\nDragon\nBarrel 1\nBarrel 2\nSmoke Mach\nHaybreak\nSAM Site\nTorch\nSkull\nUFO Sign\nUFO Light\nPetrol Pump\nAmmo Boxes\n{FF002B}Remove Object","Select","Cancel");
  139.                 }
  140.             }
  141.         }
  142.     }
  143.     }
  144.     return 1;
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement