Advertisement
Guest User

Callsign SAMP

a guest
Apr 11th, 2014
3,744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //CALLSIGN FILTERSCRIPT
  2. //#define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5. #include <zcmd>
  6. #include <sscanf2>
  7. #define COLOR_ORANGE 0xFF9500FF
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" CALLSIGN SCRIPT DAVMAN");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. new veh = GetPlayerVehicleID(playerid);
  22. Delete3DTextLabel(veicolo_callsign_testo[veh]);
  23. veicolo_callsign_status[veh] = 0;
  24. return 1;
  25. }
  26.  
  27. #else
  28.  
  29. main()
  30. {
  31. print("\n----------------------------------");
  32. print(" CALLSIGN SCRIPT DAVMAN");
  33. print("----------------------------------\n");
  34. }
  35.  
  36. #endif
  37.  
  38. //******VARIABILI******//
  39. new Text3D:veicolo_callsign_testo[MAX_VEHICLES];
  40. new veicolo_callsign_status[MAX_VEHICLES];
  41.  
  42. public OnGameModeInit()
  43. {
  44. // Don't use these lines if it's a filterscript
  45. return 1;
  46. }
  47.  
  48. public OnGameModeExit()
  49. {
  50. return 1;
  51. }
  52.  
  53. public OnPlayerRequestClass(playerid, classid)
  54. {
  55. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  56. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  57. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  58. return 1;
  59. }
  60.  
  61. public OnPlayerConnect(playerid)
  62. {
  63. SendClientMessage(playerid,COLOR_ORANGE,"INFO: {FFFFFF}This server use Callsign Filterscript Davman");
  64. return 1;
  65. }
  66.  
  67. public OnPlayerDisconnect(playerid, reason)
  68. {
  69. return 1;
  70. }
  71.  
  72. public OnPlayerSpawn(playerid)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnPlayerDeath(playerid, killerid, reason)
  78. {
  79. new veh = GetPlayerVehicleID(playerid);
  80. Delete3DTextLabel(veicolo_callsign_testo[veh]);
  81. veicolo_callsign_status[veh] = 0;
  82. return 1;
  83. }
  84.  
  85. public OnVehicleSpawn(vehicleid)
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnVehicleDeath(vehicleid, killerid)
  91. {
  92. new veh = GetPlayerVehicleID(vehicleid);
  93. Delete3DTextLabel(veicolo_callsign_testo[veh]);
  94. veicolo_callsign_status[veh] = 0;
  95. return 1;
  96. }
  97.  
  98. public OnPlayerText(playerid, text[])
  99. {
  100. return 1;
  101. }
  102. #pragma tabsize 0
  103. COMMAND:callsign(playerid,params[])
  104. {
  105. new veh = GetPlayerVehicleID(playerid);
  106. if(IsPlayerInAnyVehicle(playerid))
  107. {
  108. if(isnull(params)) return SendClientMessage(playerid,COLOR_ORANGE,"INFO: {FFFFFF}/callsign [text]");
  109. if(!veicolo_callsign_status[veh])
  110. {
  111. new string[128];
  112. format(string,sizeof(string), "%s",params);
  113. veicolo_callsign_testo[veh] = Create3DTextLabel(string, 0xFFFFFFFF, 0.0, 0.0, 0.0, 50.0, 0, 1);
  114. Attach3DTextLabelToVehicle( veicolo_callsign_testo[veh], veh, -0.7, -1.9, -0.3);
  115. veicolo_callsign_status[veh] = 1;
  116. }
  117. else
  118. {
  119. Delete3DTextLabel(veicolo_callsign_testo[veh]);
  120. veicolo_callsign_status[veh] = 0;
  121. return 1;
  122. }
  123. }
  124. else
  125. {
  126. SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle");
  127. return 1;
  128. }
  129. return 1;
  130. }
  131. COMMAND:deletecallsign(playerid,params[])
  132. {
  133. new veh = GetPlayerVehicleID(playerid);
  134. if(IsPlayerInAnyVehicle(playerid))
  135. {
  136. Delete3DTextLabel(veicolo_callsign_testo[veh]);
  137. veicolo_callsign_status[veh] = 0;
  138. }
  139. else
  140. {
  141. SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}You are not in a vehicle");
  142. }
  143. return 1;
  144. }
  145. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerExitVehicle(playerid, vehicleid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnPlayerStateChange(playerid, newstate, oldstate)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerEnterCheckpoint(playerid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerLeaveCheckpoint(playerid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnPlayerEnterRaceCheckpoint(playerid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerLeaveRaceCheckpoint(playerid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnRconCommand(cmd[])
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerRequestSpawn(playerid)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnObjectMoved(objectid)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerObjectMoved(playerid, objectid)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerPickUpPickup(playerid, pickupid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnVehicleMod(playerid, vehicleid, componentid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerSelectedMenuRow(playerid, row)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnPlayerExitedMenu(playerid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnRconLoginAttempt(ip[], password[], success)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnPlayerUpdate(playerid)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnPlayerStreamIn(playerid, forplayerid)
  251. {
  252. return 1;
  253. }
  254.  
  255. public OnPlayerStreamOut(playerid, forplayerid)
  256. {
  257. return 1;
  258. }
  259.  
  260. public OnVehicleStreamIn(vehicleid, forplayerid)
  261. {
  262. return 1;
  263. }
  264.  
  265. public OnVehicleStreamOut(vehicleid, forplayerid)
  266. {
  267. return 1;
  268. }
  269.  
  270. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  271. {
  272. return 1;
  273. }
  274.  
  275. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  276. {
  277. return 1;
  278. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement