KrisnaPradnya

krisnamaho

Jun 4th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.60 KB | None | 0 0
  1. /*******************************************************************************
  2. ////            ////////////////////////////////////////////////            ////
  3. \\\\            \\\\                                        \\\\            \\\\
  4. ////            ////           Loggo Car by Teddy           ////            ////
  5. \\\\            \\\\                                        \\\\            \\\\
  6. ////            ////////////////////////////////////////////////            ////
  7. \\\\            \\\\\\\\         Version: 1.0       \\\\\\\\\\\\            \\\\
  8. ////            ////////    Relese Date: 17/02/2013 ////////////            ////
  9. \\\\            \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\            \\\\
  10. //// Change Pandora and Network on SetObjectMaterialText [put your server]  \\\\
  11. ////            ////////////////////////////////////////////////            ////
  12. \\\\            \\\\                                        \\\\            \\\\
  13. ////            //// You CAN edit this FS to you liking     ////            ////
  14. \\\\            \\\\ You CANNOT clame this as your own      \\\\            \\\\
  15. ////            //// You CANNOT re-release or post this on  ////            ////
  16. \\\\            \\\\    other sites without my permission   \\\\            \\\\
  17. ////            ////////////////////////////////////////////////            ////
  18. *******************************************************************************/
  19. #define FILTERSCRIPT
  20.  
  21. #include <a_samp>
  22.  
  23. public OnFilterScriptInit()
  24. {
  25.     printf("\n  ----------------------------");
  26.     print(" \n  Loggo Car FileScript loaded");
  27.     printf("\n  ----------------------------\n");
  28.     return 1;
  29. }
  30. public OnFilterScriptExit()
  31. {
  32.     printf("\n  ------------------------------");
  33.     print(" \n  Loggo Car FileScript unloaded");
  34.     printf("\n  ------------------------------\n");
  35.     return 1;
  36. }
  37. public OnPlayerCommandText(playerid, cmdtext[])
  38. {
  39.     if(strcmp(cmdtext, "/loggo", true) == 0)
  40.     {
  41.          ShowPlayerDialog(playerid, 0001, DIALOG_STYLE_LIST, "Loggo by Teddy", "Put Loggo\nDelete Loggo", "Select", "Cancel");
  42.          PlayerPlaySound(playerid, 0001, 0.0, 0.0, 10.0);
  43.          return 1;
  44.     }
  45.     return 0;
  46. }
  47. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  48. {
  49.     if(dialogid == 0001)
  50.     {
  51.         if(response)
  52.         {
  53.             if(listitem == 0)
  54.             {
  55.             SetPVarInt(playerid, "o1",CreateObject(19327,0,0,0,0,0,0));
  56.             SetPVarInt(playerid, "o2",CreateObject(19327,0,0,0,0,0,0));
  57.             SetPVarInt(playerid, "o3",CreateObject(19327,0,0,0,0,0,0));
  58.             SetPVarInt(playerid, "o4",CreateObject(19327,0,0,0,0,0,0));// Change Pandora and Network on SetObjectMaterialText [put your server]
  59.             AttachObjectToVehicle(GetPVarInt(playerid, "o1"), GetPlayerVehicleID(playerid),-1.104999, 0.000000, 0.180000, -4.020000, 0.000001, 269.340515);
  60.             AttachObjectToVehicle(GetPVarInt(playerid, "o2"), GetPlayerVehicleID(playerid),1.104999, 0.000000, 0.180000, -4.020000, 0.000001, 449.236389);
  61.             AttachObjectToVehicle(GetPVarInt(playerid, "o3"), GetPlayerVehicleID(playerid),-0.009999, -1.649998, 0.549999, -72.360000, 0.000000, 0.000000);
  62.             AttachObjectToVehicle(GetPVarInt(playerid, "o4"), GetPlayerVehicleID(playerid),-0.009999, 1.584998, 0.344999, -77.384986, 0.000000, -180.900100);
  63.             SetObjectMaterialText(GetPVarInt(playerid, "o1"), "{00FFEE}Spirit\n{6EF83C}|_{FFAF00}Gamers{6EF83C}_|", 0, OBJECT_MATERIAL_SIZE_256x128,"Gabriola", 50, 1, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  64.             SetObjectMaterialText(GetPVarInt(playerid, "o2"), "{00FFEE}Spirit\n{6EF83C}|_{FFAF00}Gamers{6EF83C}_|", 0, OBJECT_MATERIAL_SIZE_256x128,"Gabriola", 50, 1, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  65.             SetObjectMaterialText(GetPVarInt(playerid, "o3"), "{00FFEE}Spirit\n{6EF83C}|_{FFAF00}Gamers{6EF83C}_|", 0, OBJECT_MATERIAL_SIZE_256x128,"Gabriola", 50, 1, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  66.             SetObjectMaterialText(GetPVarInt(playerid, "o4"), "{00FFEE}Spirit\n{6EF83C}|_{FFAF00}Gamers{6EF83C}_|", 0, OBJECT_MATERIAL_SIZE_256x128,"Gabriola", 50, 1, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  67.             SendClientMessage(playerid, 0xDEEE20FF, "You put logo on car!");
  68.             }
  69.             if(listitem == 1)
  70.             {
  71.             DestroyObject(GetPVarInt(playerid, "o1"));
  72.             DestroyObject(GetPVarInt(playerid, "o2"));
  73.             DestroyObject(GetPVarInt(playerid, "o3"));
  74.             DestroyObject(GetPVarInt(playerid, "o4"));
  75.             }
  76.         }
  77.     }
  78.     return 1;
  79. }
  80.  
  81. /*******************************************************************************
  82. /////                    ///// End Of File \\\\\                          \\\\\\
  83. ******************************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment