willbedie

willbedie's Laptop System

Feb 5th, 2018
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 16.01 KB | None | 0 0
  1. //Laptop textdraw system by willbedie.
  2.  
  3. /* CREDITS:
  4.  
  5. willbedie - Textdraws & filterscript
  6. maddinat0r - sscanf
  7. SAMP TEAM - creating SA-MP
  8. kar - foreach*/
  9.  
  10. #define FILTERSCRIPT
  11.  
  12. #include <a_samp>
  13. #include <zcmd>
  14. #include <sscanf>
  15. #include <foreach>
  16.  
  17. #if defined FILTERSCRIPT
  18. #define DIALOG_FEATURES 0
  19. #define DIALOG_REPORT 1
  20.  
  21. new Text:TDEditor_TD[16];
  22.  
  23. public OnFilterScriptInit()
  24. {
  25.     print("\n--------------------------------------");
  26.     print("willbedie's Laptop System");
  27.     print("--------------------------------------\n");
  28.    
  29.     TDEditor_TD[0] = TextDrawCreate(69.326614, 59.233386, "box");
  30.     TextDrawLetterSize(TDEditor_TD[0], 0.000000, 36.090507);
  31.     TextDrawTextSize(TDEditor_TD[0], 563.000000, 0.000000);
  32.     TextDrawAlignment(TDEditor_TD[0], 1);
  33.     TextDrawColor(TDEditor_TD[0], -1);
  34.     TextDrawUseBox(TDEditor_TD[0], 1);
  35.     TextDrawBoxColor(TDEditor_TD[0], 255);
  36.     TextDrawSetShadow(TDEditor_TD[0], 0);
  37.     TextDrawBackgroundColor(TDEditor_TD[0], 255);
  38.     TextDrawFont(TDEditor_TD[0], 1);
  39.     TextDrawSetProportional(TDEditor_TD[0], 1);
  40.  
  41.     TDEditor_TD[1] = TextDrawCreate(73.074707, 68.083351, "box");
  42.     TextDrawLetterSize(TDEditor_TD[1], 0.000000, 33.988281);
  43.     TextDrawTextSize(TDEditor_TD[1], 559.000000, 0.000000);
  44.     TextDrawAlignment(TDEditor_TD[1], 1);
  45.     TextDrawColor(TDEditor_TD[1], -13303809);
  46.     TextDrawUseBox(TDEditor_TD[1], 1);
  47.     TextDrawBoxColor(TDEditor_TD[1], -1061109505);
  48.     TextDrawSetShadow(TDEditor_TD[1], 0);
  49.     TextDrawBackgroundColor(TDEditor_TD[1], 255);
  50.     TextDrawFont(TDEditor_TD[1], 1);
  51.     TextDrawSetProportional(TDEditor_TD[1], 1);
  52.  
  53.     TDEditor_TD[2] = TextDrawCreate(76.822875, 93.966316, "box");
  54.     TextDrawLetterSize(TDEditor_TD[2], 0.000000, 30.613441);
  55.     TextDrawTextSize(TDEditor_TD[2], 555.000000, 0.000000);
  56.     TextDrawAlignment(TDEditor_TD[2], 1);
  57.     TextDrawColor(TDEditor_TD[2], -1);
  58.     TextDrawUseBox(TDEditor_TD[2], 1);
  59.     TextDrawBoxColor(TDEditor_TD[2], 255);
  60.     TextDrawSetShadow(TDEditor_TD[2], 0);
  61.     TextDrawBackgroundColor(TDEditor_TD[2], 255);
  62.     TextDrawFont(TDEditor_TD[2], 1);
  63.     TextDrawSetProportional(TDEditor_TD[2], 1);
  64.  
  65.     TDEditor_TD[3] = TextDrawCreate(77.228454, 94.716323, "box");
  66.     TextDrawLetterSize(TDEditor_TD[3], 0.000000, 30.465255);
  67.     TextDrawTextSize(TDEditor_TD[3], 554.689697, 0.000000);
  68.     TextDrawAlignment(TDEditor_TD[3], 1);
  69.     TextDrawColor(TDEditor_TD[3], -1);
  70.     TextDrawUseBox(TDEditor_TD[3], 1);
  71.     TextDrawBoxColor(TDEditor_TD[3], -1);
  72.     TextDrawSetShadow(TDEditor_TD[3], 0);
  73.     TextDrawBackgroundColor(TDEditor_TD[3], 255);
  74.     TextDrawFont(TDEditor_TD[3], 1);
  75.     TextDrawSetProportional(TDEditor_TD[3], 1);
  76.  
  77.     TDEditor_TD[4] = TextDrawCreate(285.711944, 374.983398, "SAMSUNG");
  78.     TextDrawLetterSize(TDEditor_TD[4], 0.320001, 1.360000);
  79.     TextDrawAlignment(TDEditor_TD[4], 1);
  80.     TextDrawColor(TDEditor_TD[4], -1);
  81.     TextDrawSetShadow(TDEditor_TD[4], 0);
  82.     TextDrawBackgroundColor(TDEditor_TD[4], 255);
  83.     TextDrawFont(TDEditor_TD[4], 1);
  84.     TextDrawSetProportional(TDEditor_TD[4], 1);
  85.  
  86.     TDEditor_TD[5] = TextDrawCreate(76.791419, 73.700019, "box");
  87.     TextDrawLetterSize(TDEditor_TD[5], 0.000000, 1.498764);
  88.     TextDrawTextSize(TDEditor_TD[5], 270.540985, 0.000000);
  89.     TextDrawAlignment(TDEditor_TD[5], 1);
  90.     TextDrawColor(TDEditor_TD[5], -1);
  91.     TextDrawUseBox(TDEditor_TD[5], 1);
  92.     TextDrawBoxColor(TDEditor_TD[5], 255);
  93.     TextDrawSetShadow(TDEditor_TD[5], 0);
  94.     TextDrawBackgroundColor(TDEditor_TD[5], 255);
  95.     TextDrawFont(TDEditor_TD[5], 1);
  96.     TextDrawSetProportional(TDEditor_TD[5], 1);
  97.  
  98.     TDEditor_TD[6] = TextDrawCreate(77.291412, 74.500007, "box");
  99.     TextDrawLetterSize(TDEditor_TD[6], 0.000000, 1.332358);
  100.     TextDrawTextSize(TDEditor_TD[6], 270.000000, 0.000000);
  101.     TextDrawAlignment(TDEditor_TD[6], 1);
  102.     TextDrawColor(TDEditor_TD[6], -1);
  103.     TextDrawUseBox(TDEditor_TD[6], 1);
  104.     TextDrawBoxColor(TDEditor_TD[6], -1);
  105.     TextDrawSetShadow(TDEditor_TD[6], 0);
  106.     TextDrawBackgroundColor(TDEditor_TD[6], 255);
  107.     TextDrawFont(TDEditor_TD[6], 1);
  108.     TextDrawSetProportional(TDEditor_TD[6], 1);
  109.  
  110.     TDEditor_TD[7] = TextDrawCreate(285.036773, 54.666641, "MY_DESKTOP");
  111.     TextDrawLetterSize(TDEditor_TD[7], 0.316000, 1.299998);
  112.     TextDrawAlignment(TDEditor_TD[7], 1);
  113.     TextDrawColor(TDEditor_TD[7], -1);
  114.     TextDrawSetShadow(TDEditor_TD[7], 0);
  115.     TextDrawBackgroundColor(TDEditor_TD[7], 255);
  116.     TextDrawFont(TDEditor_TD[7], 1);
  117.     TextDrawSetProportional(TDEditor_TD[7], 1);
  118.  
  119.     TDEditor_TD[8] = TextDrawCreate(81.039550, 72.166679, "www.yourname.com");
  120.     TextDrawLetterSize(TDEditor_TD[8], 0.456999, 1.600000);
  121.     TextDrawAlignment(TDEditor_TD[8], 1);
  122.     TextDrawColor(TDEditor_TD[8], 255);
  123.     TextDrawSetShadow(TDEditor_TD[8], 0);
  124.     TextDrawBackgroundColor(TDEditor_TD[8], 255);
  125.     TextDrawFont(TDEditor_TD[8], 1);
  126.     TextDrawSetProportional(TDEditor_TD[8], 1);
  127.  
  128.     TDEditor_TD[9] = TextDrawCreate(541.327575, 71.000007, "X");
  129.     TextDrawLetterSize(TDEditor_TD[9], 0.400000, 1.600000);
  130.     TextDrawAlignment(TDEditor_TD[9], 1);
  131.     TextDrawColor(TDEditor_TD[9], -16776961);
  132.     TextDrawSetShadow(TDEditor_TD[9], 0);
  133.     TextDrawSetOutline(TDEditor_TD[9], 1);
  134.     TextDrawBackgroundColor(TDEditor_TD[9], 255);
  135.     TextDrawFont(TDEditor_TD[9], 1);
  136.     TextDrawSetProportional(TDEditor_TD[9], 1);
  137.     TextDrawSetSelectable(TDEditor_TD[9], 1);
  138.  
  139.     TDEditor_TD[10] = TextDrawCreate(76.185974, 94.333320, "loadsc8:loadsc8");
  140.     TextDrawTextSize(TDEditor_TD[10], 479.000000, 275.000000);
  141.     TextDrawAlignment(TDEditor_TD[10], 1);
  142.     TextDrawColor(TDEditor_TD[10], -1);
  143.     TextDrawSetShadow(TDEditor_TD[10], 0);
  144.     TextDrawBackgroundColor(TDEditor_TD[10], 255);
  145.     TextDrawFont(TDEditor_TD[10], 4);
  146.     TextDrawSetProportional(TDEditor_TD[10], 0);
  147.  
  148.     TDEditor_TD[11] = TextDrawCreate(83.850677, 109.500045, "New_Server_Features");
  149.     TextDrawLetterSize(TDEditor_TD[11], 0.400000, 1.600000);
  150.     TextDrawAlignment(TDEditor_TD[11], 1);
  151.     TextDrawColor(TDEditor_TD[11], -1);
  152.     TextDrawSetShadow(TDEditor_TD[11], -14);
  153.     TextDrawSetOutline(TDEditor_TD[11], 1);
  154.     TextDrawBackgroundColor(TDEditor_TD[11], 255);
  155.     TextDrawFont(TDEditor_TD[11], 1);
  156.     TextDrawSetProportional(TDEditor_TD[11], 1);
  157.     TextDrawSetSelectable(TDEditor_TD[11], 1);
  158.  
  159.     TDEditor_TD[12] = TextDrawCreate(83.850677, 128.499786, "Report_Someone");
  160.     TextDrawLetterSize(TDEditor_TD[12], 0.400000, 1.600000);
  161.     TextDrawAlignment(TDEditor_TD[12], 1);
  162.     TextDrawColor(TDEditor_TD[12], -1);
  163.     TextDrawSetShadow(TDEditor_TD[12], -14);
  164.     TextDrawSetOutline(TDEditor_TD[12], 1);
  165.     TextDrawBackgroundColor(TDEditor_TD[12], 255);
  166.     TextDrawFont(TDEditor_TD[12], 1);
  167.     TextDrawSetProportional(TDEditor_TD[12], 1);
  168.     TextDrawSetSelectable(TDEditor_TD[12], 1);
  169.  
  170.     TDEditor_TD[13] = TextDrawCreate(83.850677, 147.000915, "Request_an_administrator");
  171.     TextDrawLetterSize(TDEditor_TD[13], 0.400000, 1.600000);
  172.     TextDrawAlignment(TDEditor_TD[13], 1);
  173.     TextDrawColor(TDEditor_TD[13], -1);
  174.     TextDrawSetShadow(TDEditor_TD[13], -14);
  175.     TextDrawSetOutline(TDEditor_TD[13], 1);
  176.     TextDrawBackgroundColor(TDEditor_TD[13], 255);
  177.     TextDrawFont(TDEditor_TD[13], 1);
  178.     TextDrawSetProportional(TDEditor_TD[13], 1);
  179.     TextDrawSetSelectable(TDEditor_TD[13], 1);
  180.  
  181.     TDEditor_TD[14] = TextDrawCreate(83.850677, 166.202087, "Shut_down_the_computer");
  182.     TextDrawLetterSize(TDEditor_TD[14], 0.400000, 1.600000);
  183.     TextDrawAlignment(TDEditor_TD[14], 1);
  184.     TextDrawColor(TDEditor_TD[14], -1);
  185.     TextDrawSetShadow(TDEditor_TD[14], -14);
  186.     TextDrawSetOutline(TDEditor_TD[14], 1);
  187.     TextDrawBackgroundColor(TDEditor_TD[14], 255);
  188.     TextDrawFont(TDEditor_TD[14], 1);
  189.     TextDrawSetProportional(TDEditor_TD[14], 1);
  190.     TextDrawSetSelectable(TDEditor_TD[14], true);
  191.  
  192.     TDEditor_TD[15] = TextDrawCreate(83.850677, 184.603210, "(You_can_write_over_things_here_if_you_want)");
  193.     TextDrawLetterSize(TDEditor_TD[15], 0.400000, 1.600000);
  194.     TextDrawAlignment(TDEditor_TD[15], 1);
  195.     TextDrawColor(TDEditor_TD[15], -1);
  196.     TextDrawSetShadow(TDEditor_TD[15], -14);
  197.     TextDrawSetOutline(TDEditor_TD[15], 1);
  198.     TextDrawBackgroundColor(TDEditor_TD[15], 255);
  199.     TextDrawFont(TDEditor_TD[15], 1);
  200.     TextDrawSetProportional(TDEditor_TD[15], 1);
  201.     TextDrawSetSelectable(TDEditor_TD[15], 1);
  202.     return 1;
  203. }
  204.  
  205. public OnFilterScriptExit()
  206. {
  207.     return 1;
  208. }
  209.  
  210. #endif
  211.  
  212. public OnPlayerRequestClass(playerid, classid)
  213. {
  214.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  215.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  216.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  217.     return 1;
  218. }
  219.  
  220. public OnPlayerConnect(playerid)
  221. {
  222.     return 1;
  223. }
  224.  
  225. public OnPlayerDisconnect(playerid, reason)
  226. {
  227.     return 1;
  228. }
  229.  
  230. public OnPlayerSpawn(playerid)
  231. {
  232.     return 1;
  233. }
  234.  
  235. public OnPlayerDeath(playerid, killerid, reason)
  236. {
  237.     return 1;
  238. }
  239.  
  240. public OnVehicleSpawn(vehicleid)
  241. {
  242.     return 1;
  243. }
  244.  
  245. public OnVehicleDeath(vehicleid, killerid)
  246. {
  247.     return 1;
  248. }
  249.  
  250. public OnPlayerText(playerid, text[])
  251. {
  252.     return 1;
  253. }
  254.  
  255. public OnPlayerCommandText(playerid, cmdtext[])
  256. {
  257.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  258.     {
  259.         // Do something here
  260.         return 1;
  261.     }
  262.     return 0;
  263. }
  264.  
  265. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  266. {
  267.     return 1;
  268. }
  269.  
  270. public OnPlayerExitVehicle(playerid, vehicleid)
  271. {
  272.     return 1;
  273. }
  274.  
  275. public OnPlayerStateChange(playerid, newstate, oldstate)
  276. {
  277.     return 1;
  278. }
  279.  
  280. public OnPlayerEnterCheckpoint(playerid)
  281. {
  282.     return 1;
  283. }
  284.  
  285. public OnPlayerLeaveCheckpoint(playerid)
  286. {
  287.     return 1;
  288. }
  289.  
  290. public OnPlayerEnterRaceCheckpoint(playerid)
  291. {
  292.     return 1;
  293. }
  294.  
  295. public OnPlayerLeaveRaceCheckpoint(playerid)
  296. {
  297.     return 1;
  298. }
  299.  
  300. public OnRconCommand(cmd[])
  301. {
  302.     return 1;
  303. }
  304.  
  305. public OnPlayerRequestSpawn(playerid)
  306. {
  307.     return 1;
  308. }
  309.  
  310. public OnObjectMoved(objectid)
  311. {
  312.     return 1;
  313. }
  314.  
  315. public OnPlayerObjectMoved(playerid, objectid)
  316. {
  317.     return 1;
  318. }
  319.  
  320. public OnPlayerPickUpPickup(playerid, pickupid)
  321. {
  322.     return 1;
  323. }
  324.  
  325. public OnVehicleMod(playerid, vehicleid, componentid)
  326. {
  327.     return 1;
  328. }
  329.  
  330. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  331. {
  332.     return 1;
  333. }
  334.  
  335. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  336. {
  337.     return 1;
  338. }
  339.  
  340. public OnPlayerSelectedMenuRow(playerid, row)
  341. {
  342.     return 1;
  343. }
  344.  
  345. public OnPlayerExitedMenu(playerid)
  346. {
  347.     return 1;
  348. }
  349.  
  350. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  351. {
  352.     return 1;
  353. }
  354.  
  355. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  356. {
  357.     if(newkeys == KEY_SUBMISSION)
  358.     {
  359.         TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
  360.         TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
  361.         TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
  362.         TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
  363.         TextDrawShowForPlayer(playerid, TDEditor_TD[4]);
  364.         TextDrawShowForPlayer(playerid, TDEditor_TD[5]);
  365.         TextDrawShowForPlayer(playerid, TDEditor_TD[6]);
  366.         TextDrawShowForPlayer(playerid, TDEditor_TD[7]);
  367.         TextDrawShowForPlayer(playerid, TDEditor_TD[8]);
  368.         TextDrawShowForPlayer(playerid, TDEditor_TD[9]);
  369.         TextDrawShowForPlayer(playerid, TDEditor_TD[10]);
  370.         TextDrawShowForPlayer(playerid, TDEditor_TD[11]);
  371.         TextDrawShowForPlayer(playerid, TDEditor_TD[12]);
  372.         TextDrawShowForPlayer(playerid, TDEditor_TD[13]);
  373.         TextDrawShowForPlayer(playerid, TDEditor_TD[14]);
  374.         TextDrawShowForPlayer(playerid, TDEditor_TD[15]);
  375.         SelectTextDraw(playerid, 0xFFFFFFAA);
  376.     }
  377.     return 1;
  378. }
  379.  
  380. public OnRconLoginAttempt(ip[], password[], success)
  381. {
  382.     return 1;
  383. }
  384.  
  385. public OnPlayerUpdate(playerid)
  386. {
  387.     return 1;
  388. }
  389.  
  390. public OnPlayerStreamIn(playerid, forplayerid)
  391. {
  392.     return 1;
  393. }
  394.  
  395. public OnPlayerStreamOut(playerid, forplayerid)
  396. {
  397.     return 1;
  398. }
  399.  
  400. public OnVehicleStreamIn(vehicleid, forplayerid)
  401. {
  402.     return 1;
  403. }
  404.  
  405. public OnVehicleStreamOut(vehicleid, forplayerid)
  406. {
  407.     return 1;
  408. }
  409.  
  410. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  411. {
  412.     if(dialogid == DIALOG_REPORT)
  413.     {
  414.         if(response)
  415.         {
  416.             new string[256], name[MAX_PLAYER_NAME];
  417.             GetPlayerName(playerid, name, sizeof(name));
  418.             format(string, sizeof(string), "%s: %s", name, inputtext);
  419.             SendClientMessage(playerid, -1, "{33CCFF}[REPORT]: {FFFFFF}Your report was successfully sent to all online administrators.");
  420.             SendAdminMessage(-1, string);
  421.         }
  422.         return 1;
  423.     }
  424.     return 1;
  425. }
  426.  
  427. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  428. {
  429.     return 1;
  430. }
  431.  
  432. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  433. {
  434.     if(clickedid == TDEditor_TD[9])
  435.     {
  436.          HideLaptop(playerid);
  437.          CancelSelectTextDraw(playerid);
  438.          return 1;
  439.     }
  440.     if(clickedid == TDEditor_TD[11])
  441.     {
  442.         new features[4000];
  443.         strcat(features, "Feature #1: Type something here\n");
  444.         strcat(features, "Feature #2: Type something here\n");
  445.         strcat(features, "Feature #3: Type something here\n");
  446.         strcat(features, "Feature #4: Type something here\n");
  447.         strcat(features, "Feature #5: Type something here\n");
  448.         strcat(features, "Feature #6: Type something here\n");
  449.         strcat(features, "Feature #7: Type something here\n");
  450.         strcat(features, "Feature #8: Type something here\n");
  451.         strcat(features, "Feature #9: Type something here\n");
  452.         strcat(features, "Feature #10: Type something here\n");
  453.         ShowPlayerDialog(playerid, DIALOG_FEATURES, DIALOG_STYLE_MSGBOX, "Server Features", features, "Close", "");
  454.         return 1;
  455.     }
  456.     if(clickedid == TDEditor_TD[12])
  457.     {
  458.         ShowPlayerDialog(playerid, DIALOG_REPORT, DIALOG_STYLE_INPUT, "Report Player", "Write your report here.", "Report", "Cancel");
  459.         return 1;
  460.     }
  461.     if(clickedid == TDEditor_TD[13])
  462.     {
  463.         new string[256];
  464.         new name[MAX_PLAYER_NAME];
  465.         GetPlayerName(playerid, name, sizeof(name));
  466.         format(string, sizeof(string), "ADMIN: %s is requesting an administrator.", name);
  467.         SendAdminMessage(-1, string);
  468.         SendClientMessage(playerid, -1, "SERVER: Your request was successfully sent to all online administrators.");
  469.         return 1;
  470.     }
  471.     if(clickedid == TDEditor_TD[14])
  472.     {
  473.         HideLaptop(playerid);
  474.         CancelSelectTextDraw(playerid);
  475.         return 1;
  476.     }
  477.     return 0;
  478. }
  479.  
  480. CMD:laptop(playerid, params[])
  481. {
  482.     ShowLaptop(playerid);
  483.     SendClientMessage(playerid, -1, "[!] You have turned on your laptop.");
  484.     return 1;
  485. }
  486.  
  487. CMD:laptopoff(playerid, params[])
  488. {
  489.     HideLaptop(playerid);
  490.     SendClientMessage(playerid, -1, "[!] You have shut your laptop down.");
  491.     return 1;
  492. }
  493.  
  494. stock ShowLaptop(playerid)
  495. {
  496.     TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
  497.     TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
  498.     TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
  499.     TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
  500.     TextDrawShowForPlayer(playerid, TDEditor_TD[4]);
  501.     TextDrawShowForPlayer(playerid, TDEditor_TD[5]);
  502.     TextDrawShowForPlayer(playerid, TDEditor_TD[6]);
  503.     TextDrawShowForPlayer(playerid, TDEditor_TD[7]);
  504.     TextDrawShowForPlayer(playerid, TDEditor_TD[8]);
  505.     TextDrawShowForPlayer(playerid, TDEditor_TD[9]);
  506.     TextDrawShowForPlayer(playerid, TDEditor_TD[10]);
  507.     TextDrawShowForPlayer(playerid, TDEditor_TD[11]);
  508.     TextDrawShowForPlayer(playerid, TDEditor_TD[12]);
  509.     TextDrawShowForPlayer(playerid, TDEditor_TD[13]);
  510.     TextDrawShowForPlayer(playerid, TDEditor_TD[14]);
  511.     TextDrawShowForPlayer(playerid, TDEditor_TD[15]);
  512.     SelectTextDraw(playerid, 0xFFFFFFAA);
  513.     return 1;
  514. }
  515.  
  516. stock HideLaptop(playerid)
  517. {
  518.     TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
  519.     TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
  520.     TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
  521.     TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
  522.     TextDrawHideForPlayer(playerid, TDEditor_TD[4]);
  523.     TextDrawHideForPlayer(playerid, TDEditor_TD[5]);
  524.     TextDrawHideForPlayer(playerid, TDEditor_TD[6]);
  525.     TextDrawHideForPlayer(playerid, TDEditor_TD[7]);
  526.     TextDrawHideForPlayer(playerid, TDEditor_TD[8]);
  527.     TextDrawHideForPlayer(playerid, TDEditor_TD[9]);
  528.     TextDrawHideForPlayer(playerid, TDEditor_TD[10]);
  529.     TextDrawHideForPlayer(playerid, TDEditor_TD[11]);
  530.     TextDrawHideForPlayer(playerid, TDEditor_TD[12]);
  531.     TextDrawHideForPlayer(playerid, TDEditor_TD[13]);
  532.     TextDrawHideForPlayer(playerid, TDEditor_TD[14]);
  533.     TextDrawHideForPlayer(playerid, TDEditor_TD[15]);
  534.     CancelSelectTextDraw(playerid);
  535.     return 1;
  536. }
  537.  
  538. forward SendAdminMessage(color, string[]);
  539. public SendAdminMessage(color, string[])
  540. {
  541.     foreach(Player, i)
  542.     {
  543.         if(IsPlayerAdmin(i))
  544.         {
  545.             SendClientMessage(i, color, string);
  546.         }
  547.     }
  548. }
Add Comment
Please, Sign In to add comment