Cimbur

Untitled

Feb 15th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.02 KB | None | 0 0
  1. //=================================INCLUDEs===================================//
  2. #include <a_samp>
  3. #include <YSI\y_ini>
  4. #include <streamer>
  5. #include <YSI\y_commands>
  6. #include <YSI\y_master>
  7. //=============================BOJE===========================================//
  8. #define green 0x00DE28FF
  9. #define green2 0xAFFF00FF
  10. #define darkgreen 0x5FB700FF
  11. #define lightgreen 0x23FF00FF
  12. #define red 0xFF0000FF
  13. #define yellow 0xF5FF00FF
  14. #define darkyellow 0xF5DE00FF
  15. #define orange 0xF5A300FF
  16. #define darkblue 0x0037FFFF
  17. #define blue 0x009BFFFF
  18. #define lightblue 0x00FFF0FF
  19. #define grey 0xB4B4B4FF
  20. #define white 0xF0F0F0FF
  21. #define purple 0x9C00AFFF
  22. #define black 0x0000BBAA
  23. #define BELA "{FFFFFF}"
  24. #define CRVENA "{F81414}"
  25. #define ZUTA "{CCCC33}"
  26. //=============================PRAGMA TABSIZE=================================//
  27. #pragma tabsize 0
  28. //=================================NEWs=======================================//
  29. new Text:registracija1;
  30. new Text:registracija2;
  31. new Text:registracija3;
  32. new Text:registracija4;
  33. new Text:registracija5;
  34. new Text:registracija6;
  35. new Text:registracija7;
  36. new Text:registracija8;
  37. new Text:registracija9;
  38. //=====================
  39. new Text:teleportBox;
  40. new Text:teleportDM;
  41. new Text:teleportST;
  42. new Text:teleportVPG;
  43. //=================================DIALOGs====================================//
  44. #define DIALOG_REGISTER 1
  45. #define DIALOG_LOGIN 2
  46. //========================DEFINEovi SCM,SCMTA=================================//
  47. #define SCM SendClientMessage
  48. #define SCMTA SendClientMessageToAll
  49. //=================================PATHs======================================//
  50. #define PATH "/Korisnici/%s.ini"
  51. //=================================ENUMs======================================//
  52. enum pInfo
  53. {
  54. pRegistrovan,
  55. pLozinka,
  56. pNovac,
  57. pAdmin,
  58. pUbistva,
  59. pSmrti
  60. };
  61.  
  62. new PlayerInfo[MAX_PLAYERS][pInfo];
  63. //=================================STOCKs=====================================//
  64. stock UserPath(playerid)
  65. {
  66. new string[128],playername[MAX_PLAYER_NAME];
  67. GetPlayerName(playerid,playername,sizeof(playername));
  68. format(string,sizeof(string),PATH,playername);
  69. return string;
  70. }
  71.  
  72. stock udb_hash(buf[])
  73. {
  74. new length=strlen(buf);
  75. new s1 = 1;
  76. new s2 = 0;
  77. new n;
  78. for (n=0; n<length; n++)
  79. {
  80. s1 = (s1 + buf[n]) % 65521;
  81. s2 = (s2 + s1) % 65521;
  82. }
  83. return (s2 << 16) + s1;
  84. }
  85.  
  86. //=================================PUBLICs====================================//
  87. public OnGameModeInit()
  88. {
  89. SetGameModeText("RG GM - DM/Stunt");
  90. SendRconCommand("mapname RG City");
  91. //--------------------------------------------------------------
  92. registracija1 = TextDrawCreate(-4,0,"_");
  93. TextDrawLetterSize(registracija1,0.800000,11.700008);
  94. TextDrawAlignment(registracija1,0);
  95. TextDrawBackgroundColor(registracija1,0x000000FF);
  96. TextDrawFont(registracija1,3);
  97. TextDrawUseBox(registracija1,1);
  98. TextDrawBoxColor(registracija1,0x000000FF);
  99. TextDrawTextSize(registracija1,719.000000,31.000000);
  100. TextDrawSetOutline(registracija1,0);
  101. TextDrawSetProportional(registracija1,1);
  102. TextDrawSetShadow(registracija1,1);
  103.  
  104. registracija2 = TextDrawCreate(3,342,"_");
  105. TextDrawLetterSize(registracija2,0.750000,11.800008);
  106. TextDrawAlignment(registracija2,0);
  107. TextDrawBackgroundColor(registracija2,0x000000FF);
  108. TextDrawFont(registracija2,3);
  109. TextDrawUseBox(registracija2,1);
  110. TextDrawBoxColor(registracija2,0x000000FF);
  111. TextDrawTextSize(registracija2,644.000000,350.000000);
  112. TextDrawSetOutline(registracija2,0);
  113. TextDrawSetProportional(registracija2,1);
  114. TextDrawSetShadow(registracija2,1);
  115.  
  116. registracija3 = TextDrawCreate(6,46,"~r~~h~D~w~~h~obrodosli");
  117. TextDrawLetterSize(registracija3,0.550000,1.700000);
  118. TextDrawAlignment(registracija3,0);
  119. TextDrawBackgroundColor(registracija3,0x000000FF);
  120. TextDrawFont(registracija3,3);
  121. TextDrawUseBox(registracija3,0);
  122. TextDrawSetOutline(registracija3,1);
  123. TextDrawSetProportional(registracija3,1);
  124. TextDrawSetShadow(registracija3,1);
  125.  
  126. registracija4 = TextDrawCreate(120,46,"~r~~h~N~w~~h~a");
  127. TextDrawLetterSize(registracija4,0.650000,1.700000);
  128. TextDrawAlignment(registracija4,0);
  129. TextDrawBackgroundColor(registracija4,0x000000FF);
  130. TextDrawFont(registracija4,3);
  131. TextDrawUseBox(registracija4,0);
  132. TextDrawSetOutline(registracija4,1);
  133. TextDrawSetProportional(registracija4,1);
  134. TextDrawSetShadow(registracija4,1);
  135.  
  136. registracija5 = TextDrawCreate(147,70,"~r~~h~R~w~~h~adius ~r~~h~G~w~~h~aming");
  137. TextDrawLetterSize(registracija5,0.500000,1.700000);
  138. TextDrawAlignment(registracija5,0);
  139. TextDrawBackgroundColor(registracija5,0x000000FF);
  140. TextDrawFont(registracija5,3);
  141. TextDrawUseBox(registracija5,0);
  142. TextDrawSetOutline(registracija5,1);
  143. TextDrawSetProportional(registracija5,1);
  144. TextDrawSetShadow(registracija5,1);
  145.  
  146. registracija6 = TextDrawCreate(227,84,"~r~~h~DM~w~~h~/~r~~h~FR");
  147. TextDrawLetterSize(registracija6,0.249999,0.899999);
  148. TextDrawAlignment(registracija6,0);
  149. TextDrawBackgroundColor(registracija6,0x000000FF);
  150. TextDrawFont(registracija6,1);
  151. TextDrawUseBox(registracija6,0);
  152. TextDrawSetOutline(registracija6,1);
  153. TextDrawSetProportional(registracija6,1);
  154. TextDrawSetShadow(registracija6,1);
  155.  
  156. registracija7 = TextDrawCreate(237,428,"~r~~h~V~w~~h~lasnik : ~r~~h~C~w~~h~imbur");
  157. TextDrawLetterSize(registracija7,0.500000,2.100000);
  158. TextDrawAlignment(registracija7,0);
  159. TextDrawBackgroundColor(registracija7,0x000000FF);
  160. TextDrawFont(registracija7,3);
  161. TextDrawUseBox(registracija7,0);
  162. TextDrawSetOutline(registracija7,1);
  163. TextDrawSetProportional(registracija7,1);
  164. TextDrawSetShadow(registracija7,1);
  165.  
  166. registracija8 = TextDrawCreate(249,402,"~r~~h~R~w~~h~egistracija");
  167. TextDrawLetterSize(registracija8,0.550000,1.800000);
  168. TextDrawAlignment(registracija8,0);
  169. TextDrawBackgroundColor(registracija8,0x000000FF);
  170. TextDrawFont(registracija8,3);
  171. TextDrawUseBox(registracija8,0);
  172. TextDrawSetOutline(registracija8,1);
  173. TextDrawSetProportional(registracija8,1);
  174. TextDrawSetShadow(registracija8,1);
  175.  
  176. registracija9 = TextDrawCreate(249,452,"~r~~h~L~w~~h~ogin");
  177. TextDrawLetterSize(registracija9,0.550000,1.800000);
  178. TextDrawAlignment(registracija9,0);
  179. TextDrawBackgroundColor(registracija9,0x000000FF);
  180. TextDrawFont(registracija9,3);
  181. TextDrawUseBox(registracija9,0);
  182. TextDrawSetOutline(registracija9,1);
  183. TextDrawSetProportional(registracija9,1);
  184. TextDrawSetShadow(registracija9,1);
  185. //--------------------------------------------------------------
  186. teleportBox = TextDrawCreate(320.000000, 143.000000, "~n~Teleport menu~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~_");
  187. TextDrawAlignment(teleportBox, 2);
  188. TextDrawBackgroundColor(teleportBox, 255);
  189. TextDrawFont(teleportBox, 2);
  190. TextDrawLetterSize(teleportBox, 0.500000, 1.000000);
  191. TextDrawColor(teleportBox, -1);
  192. TextDrawSetOutline(teleportBox, 0);
  193. TextDrawSetProportional(teleportBox, 1);
  194. TextDrawSetShadow(teleportBox, 1);
  195. TextDrawUseBox(teleportBox, 1);
  196. TextDrawBoxColor(teleportBox, 255);
  197. TextDrawTextSize(teleportBox, 45.000000, 115.000000);
  198.  
  199. teleportDM = TextDrawCreate(320.000000, 180.000000, "STUNT~n~Los Santos");
  200. TextDrawAlignment(teleportDM, 2);
  201. TextDrawBackgroundColor(teleportDM, 255);
  202. TextDrawFont(teleportDM, 2);
  203. TextDrawLetterSize(teleportDM, 0.260000, 0.799999);
  204. TextDrawColor(teleportDM, -1);
  205. TextDrawSetOutline(teleportDM, 0);
  206. TextDrawSetProportional(teleportDM, 1);
  207. TextDrawSetShadow(teleportDM, 1);
  208.  
  209. teleportST = TextDrawCreate(320.000000, 205.000000, "DeathMatch~n~Los Santos");
  210. TextDrawAlignment(teleportST, 2);
  211. TextDrawBackgroundColor(teleportST, 255);
  212. TextDrawFont(teleportST, 2);
  213. TextDrawLetterSize(teleportST, 0.260000, 0.799999);
  214. TextDrawColor(teleportST, -1);
  215. TextDrawSetOutline(teleportST, 0);
  216. TextDrawSetProportional(teleportST, 1);
  217. TextDrawSetShadow(teleportST, 1);
  218.  
  219. teleportVPG = TextDrawCreate(320.000000, 230.000000, "Voznja po gradu~n~Los Santos");
  220. TextDrawAlignment(teleportVPG, 2);
  221. TextDrawBackgroundColor(teleportVPG, 255);
  222. TextDrawFont(teleportVPG, 2);
  223. TextDrawLetterSize(teleportVPG, 0.260000, 0.799999);
  224. TextDrawColor(teleportVPG, -1);
  225. TextDrawSetOutline(teleportVPG, 0);
  226. TextDrawSetProportional(teleportVPG, 1);
  227. TextDrawSetShadow(teleportVPG, 1);
  228. //-----------------------------------------------
  229. TextDrawSetSelectable(teleportBox, false);
  230. TextDrawSetSelectable(teleportVPG, true);
  231. TextDrawSetSelectable(teleportST, true);
  232. TextDrawSetSelectable(teleportDM, true);
  233. return 1;
  234. }
  235.  
  236. public OnGameModeExit()
  237. {
  238. TextDrawDestroy(teleportBox);
  239. TextDrawDestroy(teleportVPG);
  240. TextDrawDestroy(teleportST);
  241. TextDrawDestroy(teleportDM);
  242. return 1;
  243. }
  244.  
  245. public OnPlayerRequestClass(playerid, classid)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnPlayerConnect(playerid)
  251. {
  252. TextDrawShowForPlayer(playerid,registracija1);
  253. TextDrawShowForPlayer(playerid,registracija2);
  254. TextDrawShowForPlayer(playerid,registracija3);
  255. TextDrawShowForPlayer(playerid,registracija4);
  256. TextDrawShowForPlayer(playerid,registracija5);
  257. TextDrawShowForPlayer(playerid,registracija6);
  258. TextDrawShowForPlayer(playerid,registracija7);
  259. TextDrawShowForPlayer(playerid,registracija9);
  260. if(fexist(UserPath(playerid)))
  261. {
  262. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  263. new string[250];
  264. new name[MAX_PLAYER_NAME];
  265. GetPlayerName(playerid, name, sizeof(name));
  266. format(string,sizeof(string),"{FA0707}_______________________________\n\n{FAF2F7}Dobrodosao nazad {FA0707}%s, \n\n{FAF2F7}upisi lozinku ako zelis pristupiti\n{FA0707}R{FAF2F7}adius {FA0707}G{FAF2F7}aming {FA0707}S{FAF2F7}erver-u.\n\n{FA0707}_______________________________",name);
  267. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "PRIJAVLJIVANJE", string, "Uredu", "");
  268. }
  269. else
  270. {
  271. SetTimerEx("PokaziRegister", 2000, false, "i", playerid);
  272. }
  273. SetTimerEx("PokaziKameru", 1, false, "i", playerid);
  274. SetTimerEx("ObrisiChet", 1, false, "i", playerid);
  275. TogglePlayerSpectating(playerid, true);
  276. return 1;
  277. }
  278.  
  279. public OnPlayerDisconnect(playerid, reason)
  280. {
  281. new INI:File = INI_Open(UserPath(playerid));
  282. INI_SetTag(File,"data");
  283. INI_WriteInt(File,"Novac",GetPlayerMoney(playerid));
  284. INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  285. INI_WriteInt(File,"Ubistva",PlayerInfo[playerid][pUbistva]);
  286. INI_WriteInt(File,"Smrti",PlayerInfo[playerid][pSmrti]);
  287. INI_Close(File);
  288. return 1;
  289. }
  290.  
  291. public OnPlayerSpawn(playerid)
  292. {
  293. TextDrawHideForPlayer(playerid,registracija1);
  294. TextDrawHideForPlayer(playerid,registracija2);
  295. TextDrawHideForPlayer(playerid,registracija3);
  296. TextDrawHideForPlayer(playerid,registracija4);
  297. TextDrawHideForPlayer(playerid,registracija5);
  298. TextDrawHideForPlayer(playerid,registracija6);
  299. TextDrawHideForPlayer(playerid,registracija7);
  300. TextDrawHideForPlayer(playerid,registracija8);
  301. TextDrawHideForPlayer(playerid,registracija9);
  302. return 1;
  303. }
  304.  
  305. public OnPlayerDeath(playerid, killerid, reason)
  306. {
  307. PlayerInfo[killerid][pUbistva]++;
  308. PlayerInfo[playerid][pSmrti]++;
  309. return 1;
  310. }
  311.  
  312. public OnVehicleSpawn(vehicleid)
  313. {
  314. return 1;
  315. }
  316.  
  317. public OnVehicleDeath(vehicleid, killerid)
  318. {
  319. return 1;
  320. }
  321.  
  322. public OnPlayerText(playerid, text[])
  323. {
  324. return 1;
  325. }
  326.  
  327. public OnPlayerCommandText(playerid, cmdtext[])
  328. {
  329. return 1;
  330. }
  331.  
  332. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  333. {
  334. return 1;
  335. }
  336.  
  337. public OnPlayerExitVehicle(playerid, vehicleid)
  338. {
  339. return 1;
  340. }
  341.  
  342. public OnPlayerStateChange(playerid, newstate, oldstate)
  343. {
  344. return 1;
  345. }
  346.  
  347. public OnPlayerEnterCheckpoint(playerid)
  348. {
  349. return 1;
  350. }
  351.  
  352. public OnPlayerLeaveCheckpoint(playerid)
  353. {
  354. return 1;
  355. }
  356.  
  357. public OnPlayerEnterRaceCheckpoint(playerid)
  358. {
  359. return 1;
  360. }
  361.  
  362. public OnPlayerLeaveRaceCheckpoint(playerid)
  363. {
  364. return 1;
  365. }
  366.  
  367. public OnRconCommand(cmd[])
  368. {
  369. return 1;
  370. }
  371.  
  372. public OnPlayerRequestSpawn(playerid)
  373. {
  374. return 1;
  375. }
  376.  
  377. public OnObjectMoved(objectid)
  378. {
  379. return 1;
  380. }
  381.  
  382. public OnPlayerObjectMoved(playerid, objectid)
  383. {
  384. return 1;
  385. }
  386.  
  387. public OnPlayerPickUpPickup(playerid, pickupid)
  388. {
  389. return 1;
  390. }
  391.  
  392. public OnVehicleMod(playerid, vehicleid, componentid)
  393. {
  394. return 1;
  395. }
  396.  
  397. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  398. {
  399. return 1;
  400. }
  401.  
  402. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  403. {
  404. return 1;
  405. }
  406.  
  407. public OnPlayerSelectedMenuRow(playerid, row)
  408. {
  409. return 1;
  410. }
  411.  
  412. public OnPlayerExitedMenu(playerid)
  413. {
  414. return 1;
  415. }
  416.  
  417. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  418. {
  419. return 1;
  420. }
  421.  
  422. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  423. {
  424. return 1;
  425. }
  426.  
  427. public OnRconLoginAttempt(ip[], password[], success)
  428. {
  429. return 1;
  430. }
  431.  
  432. public OnPlayerUpdate(playerid)
  433. {
  434. return 1;
  435. }
  436.  
  437. public OnPlayerStreamIn(playerid, forplayerid)
  438. {
  439. return 1;
  440. }
  441.  
  442. public OnPlayerStreamOut(playerid, forplayerid)
  443. {
  444. return 1;
  445. }
  446.  
  447. public OnVehicleStreamIn(vehicleid, forplayerid)
  448. {
  449. return 1;
  450. }
  451.  
  452. public OnVehicleStreamOut(vehicleid, forplayerid)
  453. {
  454. return 1;
  455. }
  456.  
  457. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  458. {
  459. if(_:clickedid != INVALID_TEXT_DRAW)
  460. {
  461. if(clickedid == teleportDM)
  462. {
  463. SetPlayerPos(playerid, 1630.2030,-2328.9673,13.5469);
  464. SetPlayerFacingAngle(playerid, 0.9392);
  465. }
  466. else if(clickedid == teleportST)
  467. {
  468. SetPlayerPos(playerid, -1424.6083, -290.9622, 14.1484);
  469. SetPlayerFacingAngle(playerid, 134.9570);
  470. }
  471. else if(clickedid == teleportVPG)
  472. {
  473. SetPlayerPos(playerid, 1688.7990, 1447.7753, 10.7675);
  474. SetPlayerFacingAngle(playerid, 267.3902);
  475. }
  476.  
  477. TextDrawHideForPlayer(playerid, teleportBox);
  478. TextDrawHideForPlayer(playerid, teleportDM);
  479. TextDrawHideForPlayer(playerid, teleportST);
  480. TextDrawHideForPlayer(playerid, teleportVPG);
  481. CancelSelectTextDraw(playerid);
  482. }
  483. return 1;
  484. }
  485.  
  486. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  487. {
  488. switch(dialogid)
  489. {
  490. case DIALOG_REGISTER:
  491. {
  492. if(!response) return Kick(playerid);
  493. if(response)
  494. {
  495. if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registracija","Ukucali ste pogresnu lozinku.\nUkucajte ispravnu lozinku da bi se registrovali.","Registruj se","Izadji");
  496. new INI:File = INI_Open(UserPath(playerid));
  497. INI_SetTag(File,"data");
  498. INI_WriteInt(File,"Lozinka",udb_hash(inputtext));
  499. INI_WriteInt(File,"Novac",0);
  500. INI_WriteInt(File,"Admin",0);
  501. INI_WriteInt(File,"Ubistva",0);
  502. INI_WriteInt(File,"Smrti",0);
  503. INI_Close(File);
  504. TogglePlayerSpectating(playerid, false);
  505. SetSpawnInfo(playerid, 0, 29, 1958.33, 1343.12, 15.36, 269.15, 1, 0, 0, 0, 0, 0);
  506. SpawnPlayer(playerid);
  507. GivePlayerMoney(playerid, 5000);
  508. SendClientMessage(playerid, -1, "Dobrodosli na Radius Gaming DM/FR Server, nadamo se da cete uzivati.");
  509. }
  510. }
  511. case DIALOG_LOGIN:
  512. {
  513. if(!response) return Kick(playerid);
  514. if(response)
  515. {
  516. if(udb_hash(inputtext) == PlayerInfo[playerid][pLozinka])
  517. {
  518. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  519. TogglePlayerSpectating(playerid, false);
  520. SetSpawnInfo(playerid, 0, 29, 1958.33, 1343.12, 15.36, 269.15, 1, 0, 0, 0, 0, 0);
  521. SpawnPlayer(playerid);
  522. GivePlayerMoney(playerid, PlayerInfo[playerid][pNovac]);
  523. }
  524. else
  525. {
  526. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Prijavljivanje","Ukucali ste pogresnu lozinku.\nUkucajte ispravnu lozinku da bi se ulogovali.","Prijavi se","Izadji");
  527. }
  528. return 1;
  529. }
  530. }
  531. }
  532. return 1;
  533. }
  534.  
  535. forward LoadUser_data(playerid,name[],value[]);
  536. public LoadUser_data(playerid,name[],value[])
  537. {
  538. INI_Int("Lozinka",PlayerInfo[playerid][pLozinka]);
  539. INI_Int("Novac",PlayerInfo[playerid][pNovac]);
  540. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  541. INI_Int("Ubistva",PlayerInfo[playerid][pUbistva]);
  542. INI_Int("Smrti",PlayerInfo[playerid][pSmrti]);
  543. return 1;
  544. }
  545.  
  546. forward PokaziRegister(playerid);
  547. public PokaziRegister(playerid)
  548. {
  549. TextDrawShowForPlayer(playerid,registracija1);
  550. TextDrawShowForPlayer(playerid,registracija2);
  551. TextDrawShowForPlayer(playerid,registracija3);
  552. TextDrawShowForPlayer(playerid,registracija4);
  553. TextDrawShowForPlayer(playerid,registracija5);
  554. TextDrawShowForPlayer(playerid,registracija6);
  555. TextDrawShowForPlayer(playerid,registracija7);
  556. TextDrawShowForPlayer(playerid,registracija8);
  557. new string[250];
  558. new name[MAX_PLAYER_NAME];
  559. GetPlayerName(playerid, name, sizeof(name));
  560. format(string,sizeof(string),"{FA0707}_______________________________\n\n{FAF2F7}Dobrodosao {FA0707}%s, \n\n{FAF2F7}upisi lozinku ako zelis pristupiti\n{FA0707}R{FAF2F7}adius {FA0707}G{FAF2F7}aming {FA0707}S{FAF2F7}erver-u.\n\n{FA0707}_______________________________",name);
  561. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "REGISTRACIJA", string, "Uredu", "");
  562. return 1;
  563. }
  564.  
  565. forward ObrisiChet(playerid);
  566. public ObrisiChet(playerid)
  567. {
  568. for(new i = 0; i < 200; i++)
  569. {
  570. SendClientMessage(playerid, -1, " ");
  571. }
  572. return 1;
  573. }
  574.  
  575. forward PokaziKameru(playerid);
  576. public PokaziKameru(playerid)
  577. {
  578. InterpolateCameraPos(playerid, 1713.581176, -2517.539306, 31.030027, 1774.834594, -2484.041503, 31.030027, 4000);
  579. InterpolateCameraLookAt(playerid, 1708.947998, -2519.105957, 29.991094, 1770.360229, -2481.818847, 30.831178, 2000);
  580. return 1;
  581. }
  582. main(){}
  583. //===============================KOMANDE======================================//
  584. YCMD:teleport(playerid, params[], help)
  585. {
  586. #pragma unused help
  587. #pragma unused params
  588. TextDrawShowForPlayer(playerid, teleportBox);
  589. TextDrawShowForPlayer(playerid, teleportDM);
  590. TextDrawShowForPlayer(playerid, teleportST);
  591. TextDrawShowForPlayer(playerid, teleportVPG);
  592. SelectTextDraw(playerid, 0xA3B4C5FF);
  593. return 1;
  594. }
Advertisement
Add Comment
Please, Sign In to add comment