Advertisement
Guest User

Untitled

a guest
May 9th, 2011
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.70 KB | None | 0 0
  1. if(strcmp(cmdtext,"/blueneon",true)==0)
  2. {
  3. SetPVarInt(playerid, "Status", 1);
  4. SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
  5. SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
  6. AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  7. AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  8. SendClientMessage(playerid, 0x95DFECFF, "You have added Blue neon lights to your car.");
  9. return 1;
  10. }
  11. if(strcmp(cmdtext,"/redneon",true)==0)
  12. {
  13. SetPVarInt(playerid, "Status", 1);
  14. SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
  15. SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
  16. AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  17. AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  18. SendClientMessage(playerid, 0xFF0000FF, "You have added Red neon lights to your car.");
  19. return 1;
  20. }
  21. if(strcmp(cmdtext,"/greenneon",true)==0)
  22. {
  23. SetPVarInt(playerid, "Status", 1);
  24. SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
  25. SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
  26. AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  27. AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  28. SendClientMessage(playerid, 0x00FF00FF, "You have added Green neon lights to your car.");
  29. return 1;
  30. }
  31. if(strcmp(cmdtext,"/whiteneon",true)==0)
  32. {
  33. SetPVarInt(playerid, "Status", 1);
  34. SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
  35. SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
  36. AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  37. AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  38. SendClientMessage(playerid, 0xFFFFFFAA, "You have added White neon lights to your car.");
  39. return 1;
  40. }
  41. if(strcmp(cmdtext,"/pinkneon",true)==0)
  42. {
  43. SetPVarInt(playerid, "Status", 1);
  44. SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
  45. SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
  46. AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  47. AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  48. SendClientMessage(playerid, 0xFF66FFAA , "You have added Pink neon lights to your car.");
  49. return 1;
  50. }
  51. if(strcmp(cmdtext,"/yellowneon",true)==0)
  52. {
  53. SetPVarInt(playerid, "Status", 1);
  54. SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
  55. SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
  56. AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  57. AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  58. SendClientMessage(playerid, 0xFFFF00AA, "You have added Yellow neon lights to your car.");
  59. return 1;
  60. }
  61. if(strcmp(cmdtext,"/policelight",true)==0)
  62. {
  63. SetPVarInt(playerid, "Status", 1);
  64. SetPVarInt(playerid, "neon12", CreateObject(18646,0,0,0,0,0,0));
  65. SetPVarInt(playerid, "neon13", CreateObject(18646,0,0,0,0,0,0));
  66. AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  67. AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  68. SendClientMessage(playerid, 0x2641FEAA, "You have added PoliceLights to your car.");
  69. return 1;
  70. }
  71. if(strcmp(cmdtext,"/interiorlight",true)==0)
  72. {
  73. SetPVarInt(playerid, "Status", 1);
  74. SetPVarInt(playerid, "interior", CreateObject(18646,0,0,0,0,0,0));
  75. SetPVarInt(playerid, "interior1", CreateObject(18646,0,0,0,0,0,0));
  76. AttachObjectToVehicle(GetPVarInt(playerid, "interior"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
  77. AttachObjectToVehicle(GetPVarInt(playerid, "interior1"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
  78. SendClientMessage(playerid, 0x2641FEAA, "You have added InteriorLights to your car.");
  79. return 1;
  80. }
  81. if(strcmp(cmdtext,"/backlight",true)==0)
  82. {
  83. SetPVarInt(playerid, "Status", 1);
  84. SetPVarInt(playerid, "back", CreateObject(18646,0,0,0,0,0,0));
  85. SetPVarInt(playerid, "back1", CreateObject(18646,0,0,0,0,0,0));
  86. AttachObjectToVehicle(GetPVarInt(playerid, "back"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
  87. AttachObjectToVehicle(GetPVarInt(playerid, "back1"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
  88. SendClientMessage(playerid, 0x2641FEAA, "You have added BackLights to your car.");
  89. return 1;
  90. }
  91. if(strcmp(cmdtext,"/frontlight",true)==0)
  92. {
  93. SetPVarInt(playerid, "Status", 1);
  94. SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0));
  95. SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0));
  96. AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
  97. AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
  98. SendClientMessage(playerid, 0x2641FEAA, "You have added FrontLights to your car.");
  99. return 1;
  100. }
  101. if(strcmp(cmdtext,"/undercoverlight",true)==0)
  102. {
  103. SetPVarInt(playerid, "Status", 1);
  104. SetPVarInt(playerid, "undercover", CreateObject(18646,0,0,0,0,0,0));
  105. SetPVarInt(playerid, "undercover1", CreateObject(18646,0,0,0,0,0,0));
  106. AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
  107. AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
  108. SendClientMessage(playerid, 0x2641FEAA, "You have added UndercoverLights to your car.");
  109. return 1;
  110. }
  111. if(strcmp(cmdtext,"/removeallneon",true)==0)
  112. {
  113. DestroyObject(GetPVarInt(playerid, "neon"));
  114. DeletePVar(playerid, "Status");
  115. DestroyObject(GetPVarInt(playerid, "neon1"));
  116. DeletePVar(playerid, "Status");
  117. DestroyObject(GetPVarInt(playerid, "neon2"));
  118. DeletePVar(playerid, "Status");
  119. DestroyObject(GetPVarInt(playerid, "neon3"));
  120. DeletePVar(playerid, "Status");
  121. DestroyObject(GetPVarInt(playerid, "neon4"));
  122. DeletePVar(playerid, "Status");
  123. DestroyObject(GetPVarInt(playerid, "neon5"));
  124. DeletePVar(playerid, "Status");
  125. DestroyObject(GetPVarInt(playerid, "neon6"));
  126. DeletePVar(playerid, "Status");
  127. DestroyObject(GetPVarInt(playerid, "neon7"));
  128. DeletePVar(playerid, "Status");
  129. DestroyObject(GetPVarInt(playerid, "neon8"));
  130. DeletePVar(playerid, "Status");
  131. DestroyObject(GetPVarInt(playerid, "neon9"));
  132. DeletePVar(playerid, "Status");
  133. DestroyObject(GetPVarInt(playerid, "neon10"));
  134. DeletePVar(playerid, "Status");
  135. DestroyObject(GetPVarInt(playerid, "neon11"));
  136. DeletePVar(playerid, "Status");
  137. DestroyObject(GetPVarInt(playerid, "neon12"));
  138. DeletePVar(playerid, "Status");
  139. DestroyObject(GetPVarInt(playerid, "neon13"));
  140. DeletePVar(playerid, "Status");
  141. DestroyObject(GetPVarInt(playerid, "interior"));
  142. DeletePVar(playerid, "Status");
  143. DestroyObject(GetPVarInt(playerid, "interior1"));
  144. DeletePVar(playerid, "Status");
  145. DestroyObject(GetPVarInt(playerid, "back"));
  146. DeletePVar(playerid, "Status");
  147. DestroyObject(GetPVarInt(playerid, "back1"));
  148. DeletePVar(playerid, "Status");
  149. DestroyObject(GetPVarInt(playerid, "front"));
  150. DeletePVar(playerid, "Status");
  151. DestroyObject(GetPVarInt(playerid, "front1"));
  152. DeletePVar(playerid, "Status");
  153. DestroyObject(GetPVarInt(playerid, "undercover"));
  154. DeletePVar(playerid, "Status");
  155. DestroyObject(GetPVarInt(playerid, "undercover1"));
  156. return 1;
  157. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement