Tecno-Samp

Kart www.tecno-samp.net

Aug 16th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnGameModeInit()
  4. {
  5. print("\n*****************************************");
  6. print("* CRIADO POR :[BLR]Gabryel[TS] *");
  7. print("* MAP: Kart *");
  8. print("* Créditos: LoOsT[BeG] por Converter e criar o CMD *");
  9. print("****************************************\n");
  10. CreateObject(8355, 3186.2866210938, -532.7177734375, 14.416276931763, 0, 0, 89.5);
  11. CreateObject(3491, 3192.4284667969, -524.24743652344, 22.886596679688, 0, 0, 0);
  12. CreateObject(8355, 3175.2392578125, -492.67797851563, 14.416276931763, 0, 0, 89.49462890625);
  13. CreateObject(2773, 3166.138671875, -535.68334960938, 14.933505058289, 0, 0, 87.25);
  14. CreateObject(2773, 3166.1843261719, -533.35992431641, 14.933505058289, 0, 0, 87.247924804688);
  15. CreateObject(2773, 3166.1103515625, -530.72937011719, 14.933505058289, 0, 0, 87.247924804688);
  16. CreateObject(2773, 3166.1762695313, -528.19982910156, 14.933505058289, 0, 0, 87.247924804688);
  17. CreateObject(2773, 3166.3056640625, -525.5634765625, 14.933505058289, 0, 0, 87.247924804688);
  18. CreateObject(2773, 3166.3811035156, -522.99224853516, 14.933505058289, 0, 0, 87.247924804688);
  19. CreateObject(2773, 3166.4533691406, -520.52081298828, 14.933505058289, 0, 0, 87.247924804688);
  20. CreateObject(2773, 3166.453125, -520.5205078125, 14.933505058289, 0, 0, 87.247924804688);
  21. CreateObject(3881, 3179.5017089844, -550.0390625, 16.267839431763, 0, 0, 88);
  22. CreateObject(3666, 3183.6135253906, -552.39215087891, 14.929962158203, 0, 0, 0);
  23. CreateObject(3666, 3187.8337402344, -552.53900146484, 14.929962158203, 0, 0, 0);
  24. CreateObject(3666, 3185.7734375, -552.43371582031, 14.929962158203, 0, 0, 0);
  25. CreateObject(3666, 3189.892578125, -552.64233398438, 14.929962158203, 0, 0, 0);
  26. CreateObject(3666, 3191.9538574219, -552.57818603516, 14.929962158203, 0, 0, 0);
  27. CreateObject(3666, 3194.1044921875, -552.56921386719, 14.929962158203, 0, 0, 0);
  28. CreateObject(3666, 3196.255859375, -552.55944824219, 14.929962158203, 0, 0, 0);
  29. CreateObject(3666, 3198.4072265625, -552.54968261719, 14.929962158203, 0, 0, 0);
  30. CreateObject(3666, 3200.6083984375, -552.541015625, 14.929962158203, 0, 0, 0);
  31. CreateObject(3666, 3202.7099609375, -552.53015136719, 14.929962158203, 0, 0, 0);
  32. CreateObject(9192, 3178.203125, -557.06829833984, 26.26411819458, 0.5, 0, 0.75);
  33. CreateObject(7232, 3210.84765625, -552.26153564453, 18.034969329834, 0, 0, 0);
  34. CreateObject(1337, 3210.84765625, -552.2607421875, 18.534969329834, 0, 0, 0);
  35. CreateObject(2693, 3188.8037109375, -552.39343261719, 15.125449180603, 0, 0, 188);
  36. CreateObject(2692, 3197.1306152344, -552.33770751953, 15.162077903748, 0, 0, 174);
  37. CreateObject(7288, 3220.0451660156, -525.74749755859, 16.950866699219, 0, 0, 0);
  38. CreateObject(2745, 3193.9489746094, -522.91766357422, 15.6248960495, 0, 0, 268);
  39. CreateObject(3471, 3165.8759765625, -536.86108398438, 15.690816879272, 0, 0, 0);
  40. CreateObject(3471, 3166.3095703125, -519.17926025391, 15.690816879272, 0, 0, 0);
  41. CreateObject(8355, 3101.9450683594, -506.18994140625, 13.666276931763, 0, 20, 91.494689941406);
  42. CreateObject(8355, 3213.9396972656, -542.06573486328, 21.116323471069, 0, 1.7499694824219, 91.494140625);
  43. CreateObject(2933, 3180.474609375, -523.04473876953, 22.11079788208, 0, 0, 2);
  44. CreateObject(2933, 3189.2155761719, -522.73236083984, 22.11079788208, 0, 0, 2.24951171875);
  45. CreateObject(2933, 3197.8889160156, -522.61022949219, 22.08579826355, 0, 0, 2.2467041015625);
  46. CreateObject(2933, 3206.6206054688, -522.29516601563, 22.010799407959, 0, 0, 2.2467041015625);
  47. CreateObject(2933, 3215.3395996094, -522.0546875, 22.160797119141, 0, 0, 2.2467041015625);
  48. CreateObject(2933, 3166.7121582031, -517.86102294922, 15.960891723633, 0, 0, 1.99951171875);
  49. CreateObject(2933, 3171.2663574219, -513.29644775391, 15.935892105103, 0, 0, 89.999542236328);
  50. CreateObject(2933, 3175.4609375, -508.90423583984, 15.935892105103, 0, 0, 358.49450683594);
  51. CreateObject(2933, 3226.9384765625, -556.38641357422, 23.282421112061, 0, 0, 89.994506835938);
  52. CreateObject(2933, 3222.6760253906, -560.84625244141, 23.282421112061, 0, 0, 1.7445068359375);
  53. CreateObject(2933, 3214.1403808594, -561.11999511719, 23.282421112061, 0, 0, 1.7413330078125);
  54. CreateObject(2933, 3205.75, -561.365234375, 23.282421112061, 0, 0, 1.7413330078125);
  55. CreateObject(2933, 3197.26953125, -561.65930175781, 23.282421112061, 0, 0, 1.7413330078125);
  56. CreateObject(2933, 3188.7939453125, -561.92102050781, 23.282421112061, 0, 0, 1.7413330078125);
  57. CreateObject(2933, 3180.408203125, -562.18725585938, 23.282421112061, 0, 0, 1.7413330078125);
  58. CreateObject(2933, 3172.0986328125, -562.43572998047, 23.282421112061, 0, 0, 1.7413330078125);
  59. CreateObject(2933, 3167.7062988281, -558.22106933594, 23.182422637939, 0, 358.75, 270.74133300781);
  60. CreateObject(2933, 3167.7492675781, -553.44818115234, 24.932395935059, 0, 88.249877929688, 270.48608398438);
  61. CreateObject(3049, 3171.1975097656, -522.20709228516, 22.725425720215, 3.7584228515625, 339.95501708984, 273.37005615234);
  62. CreateObject(3049, 3171.0632324219, -518.10797119141, 21.225425720215, 3.75732421875, 339.94995117188, 275.36779785156);
  63. CreateObject(3666, 3193.0737304688, -552.63305664063, 14.929962158203, 0, 0, 0);
  64. CreateObject(3666, 3195.015625, -552.72802734375, 14.929962158203, 0, 0, 0);
  65. CreateObject(3666, 3195.015625, -552.7275390625, 14.929962158203, 0, 0, 0);
  66. CreateObject(3666, 3190.98828125, -552.6953125, 14.929962158203, 0, 0, 0);
  67. CreateObject(3666, 3190.98828125, -552.6953125, 14.929962158203, 0, 0, 0);
  68. CreateObject(3666, 3186.869140625, -552.4873046875, 14.929962158203, 0, 0, 0.25);
  69. CreateObject(3666, 3186.869140625, -552.4873046875, 14.929962158203, 0, 0, 0.2471923828125);
  70. CreateObject(3666, 3184.5844726563, -552.43920898438, 14.929962158203, 0, 0, 0.25);
  71. CreateObject(3666, 3184.583984375, -552.4384765625, 14.929962158203, 0, 0, 0.2471923828125);
  72. CreateObject(3666, 3199.5029296875, -552.6025390625, 14.929962158203, 0, 0, 0);
  73. CreateObject(3666, 3199.5029296875, -552.6025390625, 14.929962158203, 0, 0, 0);
  74. CreateObject(3666, 3201.5297851563, -552.56134033203, 14.929962158203, 0, 0, 0.25);
  75. CreateObject(1541, 3179.1496582031, -547.36889648438, 16.242938995361, 0, 0, 0);
  76. CreateObject(16151, 3179.0229492188, -546.2763671875, 14.416276931763, 0, 0, 270);
  77. CreateObject(16152, 3170.9577636719, -551.26416015625, 14.416276931763, 0, 0, 88);
  78. return 1;
  79. }
  80. public OnPlayerCommandText(playerid, cmdtext[])
  81. {
  82. new stringa[MAX_PLAYERS];
  83.  
  84. if(strcmp(cmdtext, "/kart", true) == 0) {
  85. if(IsPlayerInAnyVehicle(playerid)) {
  86. new VehicleID;
  87. VehicleID = GetPlayerVehicleID(playerid);
  88. SetVehiclePos(VehicleID,3170.388671875,-543.94445800781,15.065502166748);
  89. SetVehicleZAngle(GetPlayerVehicleID(playerid), 00.0);
  90. new pname[MAX_PLAYERS];
  91. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  92. format(stringa, sizeof(stringa), " %s Foi Para a ilha ( /kart )", pname);
  93. SendClientMessageToAll(0x00C000AA, stringa);
  94. ResetPlayerWeapons(playerid);
  95. SetPlayerInterior(playerid,0);
  96. SetPlayerArmour(playerid, 100.0);
  97. SetPlayerHealth(playerid, 100.0);
  98. }else{
  99. SetPlayerPos(playerid,3170.388671875,-543.94445800781,15.065502166748);
  100. new pname[MAX_PLAYERS];
  101. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  102. format(stringa, sizeof(stringa), " %s Foi Para a ilha ( /kart )", pname);
  103. SendClientMessageToAll(0x00C000AA, stringa);
  104. ResetPlayerWeapons(playerid);
  105. SetPlayerInterior(playerid,0);
  106. SetPlayerArmour(playerid, 100.0);
  107. SetVehicleHealth(playerid, 100.0);
  108. }
  109. return 1;
  110. }
  111. return 0;}
Add Comment
Please, Sign In to add comment