Advertisement
Guest User

Untitled

a guest
May 28th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. #include <a_samp>
  2. #include <a_objects>
  3.  
  4. #define COLOR_WHITE 0xFFFFFFAA
  5.  
  6. new kogut;
  7. new vehicle;
  8. new objectid;
  9. new objectid1;
  10. new objectid2;
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. objectid = CreateObject(19327, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //create the object
  15. objectid1 = CreateObject(19327, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //create the object
  16. objectid2 = CreateObject(19327, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //create the object
  17. print("\n--------------------------------------");
  18. print("------------Kogut by BartuS------------");
  19. print("----------------Loaded--------------");
  20. print("--------------------------------------\n");
  21. return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26. DestroyObject(objectid);
  27. DestroyObject(objectid1);
  28. DestroyObject(objectid2);
  29. print("\n-----------------------------------");
  30. print("-----------Kogut by BartuS----------");
  31. print("--------------Unloaded---------------");
  32. print("-----------------------------------\n");
  33. return 1;
  34. }
  35.  
  36.  
  37. public OnPlayerCommandText(playerid, cmdtext[])
  38. {
  39. if(strcmp(cmdtext, "/kogut", true) == 0)
  40. {
  41. kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);//lampka tyl
  42. vehicle = GetPlayerVehicleID(playerid);
  43. AttachObjectToVehicle(kogut, vehicle, 0.33, -0.94, 0.45, 0.0, 2.0, 0.0);
  44. SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
  45.  
  46. kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);//lampka tyl
  47. vehicle = GetPlayerVehicleID(playerid);
  48. AttachObjectToVehicle(kogut, vehicle, -0.33, -0.94, 0.45, 0.0, -182.0, 0.0);
  49. SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
  50.  
  51. kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);
  52. vehicle = GetPlayerVehicleID(playerid);
  53. AttachObjectToVehicle(kogut, vehicle, -0.22, 2.66, -0.2, 0.0, 0.0, 180.0);
  54. SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
  55.  
  56. kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);
  57. vehicle = GetPlayerVehicleID(playerid);
  58. AttachObjectToVehicle(kogut, vehicle, 0.22, 2.66, -0.2, 0.0, 180.0, 180.0);
  59. SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
  60.  
  61. SetObjectMaterialText(objectid, "{FFFFFF}POLICJA", 0, 100, "impact", 30, 0, -32256, 0, 1);//policja tył
  62. AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 1.05, -0.8, -0.17, 0.0, 0.0, 90.0);
  63.  
  64. SetObjectMaterialText(objectid2, "{FFFFFF}POLICJA", 0, 100, "impact", 30, 0, -32256, 0, 1);//policja tył
  65. AttachObjectToVehicle(objectid2, GetPlayerVehicleID(playerid), -1.05, -0.8, -0.17, 0.0, 0.0, -90.0);
  66.  
  67. SetObjectMaterialText(objectid1, "{FFFFFF}POLICJA", 0, 100, "impact", 40, 0, -32256, 0, 1);
  68. AttachObjectToVehicle(objectid1, GetPlayerVehicleID(playerid), 0.0, 2.32, 0.0, -75.0, 0.0, 180.0);//policja przod
  69. return 1;
  70. }
  71.  
  72. if(strcmp(cmdtext, "/delkogut", true) == 0) {
  73. DestroyObject(kogut);
  74. SendClientMessage(playerid, COLOR_WHITE, "Usunięto Kogut");
  75. return 1;
  76. }
  77. return 0;
  78. }
  79.  
  80. public OnVehicleSpawn(vehicleid)
  81. {
  82. DestroyObject(kogut);
  83. return 1;
  84. }
  85.  
  86. public OnVehicleDeath(vehicleid, killerid)
  87. {
  88. DestroyObject(kogut);
  89. return 1;
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement