Guest User

Untitled

a guest
Apr 20th, 2013
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. /*==============================================================================
  2. ========= Made By : J4mmyHD=====================================================
  3. =============================== JVEH System=====================================
  4. ============ DONT REMOVE CREDITS ===============================================
  5. ==============================================================================*/
  6.  
  7. //==============================================================================
  8. // Includes
  9. //==============================================================================
  10. #include <a_samp>
  11. #include <sscanf2>
  12.  
  13. //==============================================================================
  14. // Makeing it a Filterscript
  15. //==============================================================================
  16. #define FILTERSCRIPT
  17. #if defined FILTERSCRIPT
  18. #define COLOR_LIGHTBLUE 0x33CCFFAA
  19.  
  20. //==============================================================================
  21. // The Varibles
  22. //==============================================================================
  23. new Float:x, Float:y, Float:z, id, col1, col2;
  24.  
  25. //==============================================================================
  26. // The Script
  27. //==============================================================================
  28. public OnFilterScriptInit()
  29. {
  30. print("========================================");
  31. print("============== JVEH System =============");
  32. print("========================================");
  33. return 1;
  34. }
  35.  
  36. public OnFilterScriptExit()
  37. {
  38. return 1;
  39. }
  40.  
  41. public OnPlayerCommandText(playerid, cmdtext[])
  42. {
  43. if (strcmp("/veh", cmdtext, true, 10) == 0)
  44. {
  45. if(sscanf(cmdtext, "iii", id, col1, col2)) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /veh [vehicleid] [color1] [color2]");
  46. GetPlayerPos(playerid, x, y, z);
  47. CreateVehicle(id, x, y, z, 0, col1, col2, 2000);
  48. SendClientMessage(playerid, COLOR_LIGHTBLUE, "JVEH :{FFFFFF} You have spawned a car at your postion!");
  49. return 1;
  50. }
  51. return 0;
  52. }
  53.  
  54. #endif
Advertisement
Add Comment
Please, Sign In to add comment