Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------\\
- // Objects Menu by fiki574_CRO \\
- //------------------------------------\\
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/objects", cmdtext, true, 10) == 0)
- {
- 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");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid == 99)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerAttachedObject(playerid,1,13562,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~SPRUNK ~w~CREATED",4000,3);
- }
- case 1:
- {
- SetPlayerAttachedObject(playerid,1,3528,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~DRAGON ~w~CREATED",4000,3);
- }
- case 2:
- {
- SetPlayerAttachedObject(playerid,1,1218,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~BARREL 1 ~w~CREATED",4000,3);
- }
- case 3:
- {
- SetPlayerAttachedObject(playerid,1,1217,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~BARREL 2 ~w~CREATED",4000,3);
- }
- case 4:
- {
- SetPlayerAttachedObject(playerid,1,1780,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~SMOKE MACH ~w~CREATED",4000,3);
- }
- case 5:
- {
- SetPlayerAttachedObject(playerid,1,3374,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~HAYBREAK ~w~CREATED",4000,3);
- }
- case 6:
- {
- SetPlayerAttachedObject(playerid,1,3267,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~SAM SITE ~w~CREATED",4000,3);
- }
- case 7:
- {
- SetPlayerAttachedObject(playerid,1,3461,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~TIKI TORCH ~w~CREATED",4000,3);
- }
- case 8:
- {
- SetPlayerAttachedObject(playerid,1,3524,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~SKULL ~w~CREATED",4000,3);
- }
- case 9:
- {
- SetPlayerAttachedObject(playerid,1,16778,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~UFO SIGN ~w~CREATED",4000,3);
- }
- case 10:
- {
- SetPlayerAttachedObject(playerid,1,16779,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~UFO LIGHT ~w~CREATED",4000,3);
- }
- case 11:
- {
- SetPlayerAttachedObject(playerid,1,1686,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~PETROL PUMP ~w~CREATED",4000,3);
- }
- case 12:
- {
- 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");
- }
- case 13:
- {
- RemovePlayerAttachedObject(playerid,1);
- GameTextForPlayer(playerid,"~g~OBJECT ~w~REMOVED",4000,3);
- }
- }
- }
- }
- switch(dialogid == 98)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerAttachedObject(playerid,1,2040,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~AMMO BOX 1 ~w~CREATED",4000,3);
- }
- case 1:
- {
- SetPlayerAttachedObject(playerid,1,2041,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~AMMO BOX 2 ~w~CREATED",4000,3);
- }
- case 2:
- {
- SetPlayerAttachedObject(playerid,1,2042,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~AMMO BOX 3 ~w~CREATED",4000,3);
- }
- case 3:
- {
- SetPlayerAttachedObject(playerid,1,2043,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~AMMO BOX 4 ~w~CREATED",4000,3);
- }
- case 4:
- {
- SetPlayerAttachedObject(playerid,1,2358,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~AMMO BOX 5 ~w~CREATED",4000,3);
- }
- case 5:
- {
- SetPlayerAttachedObject(playerid,1,2359,true,0.0,0.0,0.0,0.0);
- GameTextForPlayer(playerid,"~g~AMMO BOX 6 ~w~CREATED",4000,3);
- }
- case 6:
- {
- 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");
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement