Advertisement
Guest User

TextStats v1

a guest
Jul 20th, 2012
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.26 KB | None | 0 0
  1. /*===================================[Credits]==================================
  2. Thank you for downloading my filterscript. As far as I know there are no bugs
  3. but you can always report them if you may find one.
  4.  
  5. Credits: Xeriuk
  6. =====================================[Credits]=================================*/
  7.  
  8. #define FILTERSCRIPT
  9.  
  10. #include <a_samp>
  11. #include <YSI\y_ini>
  12. #include <zcmd>
  13.  
  14. #if defined FILTERSCRIPT
  15.  
  16. //===============================[COLORS]=======================================
  17. #define COL_WHITE "{FFFFFF}"
  18. #define COL_RED "{F81414}"
  19. #define COLOR_GREY 0xAFAFAFAA
  20.  
  21. //==============================[SYMBOLS MAX_PLAYERS]===========================
  22. new gPlayerLogged[MAX_PLAYERS];
  23. new gPlayerLogTries[MAX_PLAYERS];
  24.  
  25. //===================================[Defines]==================================
  26. #define PRESSED(%0) \
  27. (((newkeys&(%0))==(%0)) && ((oldkeys & (%0)) != (%0))) //Define for pressing keys
  28. #define PATH "/Users/%s.ini" //This is where the info will be saved
  29. #define strlen(%0,%1,%2) %0="",strcat(%0,%2,%1)
  30.  
  31. //===================================[Playerinfo]===============================
  32.  
  33. enum pInfo //Here we specify the players info that it should save.
  34. {
  35. pPass,
  36. pKills,
  37. pDeaths,
  38. pCash,
  39. pAdmin,
  40. pWarns,
  41. pMuted,
  42. pMuteTime,
  43. pModel,
  44. pVip,
  45. };
  46. new PlayerInfo[MAX_PLAYERS][pInfo];
  47. forward LoadUser_data(playerid,name[],value[]);
  48. public LoadUser_data(playerid,name[],value[])
  49. {
  50. INI_Int("Password",PlayerInfo[playerid][pPass]);
  51. INI_Int("Kills",PlayerInfo[playerid][pKills]);
  52. INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
  53. INI_Int("Money",PlayerInfo[playerid][pCash]);
  54. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  55. INI_Int("Model",PlayerInfo[playerid][pModel]);
  56. INI_Int("Warns",PlayerInfo[playerid][pWarns]);
  57. INI_Int("Muted",PlayerInfo[playerid][pMuted]);
  58. INI_Int("MuteTime",PlayerInfo[playerid][pMuteTime]);
  59. INI_Int("Vip",PlayerInfo[playerid][pVip]);
  60. return 1;
  61. }
  62.  
  63. //========================[Textdraws]===========================================
  64. new Text:StatsText0; //All the textdraws we need to make the actual screen
  65. new Text:StatsText1;
  66. new Text:StatsText2;
  67. new Text:StatsText3;
  68. new Text:StatsText4;
  69. new Text:StatsText5;
  70. new Text:StatsText6;
  71. new Text:StatsText7;
  72. new Text:StatsText8;
  73. new Text:StatsText9;
  74. new Text:StatsText10;
  75. new Text:StatsText11;
  76. new Text:StatsText13;
  77.  
  78. //======================[Stocks]================================================
  79. stock UserPath(playerid)
  80. {
  81. new string[128],playername[MAX_PLAYER_NAME];
  82. GetPlayerName(playerid,playername,sizeof(playername));
  83. format(string,sizeof(string),PATH,playername);
  84. return string;
  85. }
  86.  
  87. stock udb_hash(buf[]) { // Credits to DracoBlue
  88. new length=strlen(buf);
  89. new s1 = 1;
  90. new s2 = 0;
  91. new n;
  92. for (n=0; n<length; n++)
  93. {
  94. s1 = (s1 + buf[n]) % 65521;
  95. s2 = (s2 + s1) % 65521;
  96. }
  97. return (s2 << 16) + s1;
  98. }
  99. public OnFilterScriptInit()
  100. {
  101. print("\n--------------------------------------");
  102. print(" Textdraw playerstats v1");
  103. print("--------------------------------------\n");
  104.  
  105. StatsText0 = TextDrawCreate(200.000000, 110.000000, "New Textdraw");
  106. TextDrawBackgroundColor(StatsText0, 255);
  107. TextDrawFont(StatsText0, 1);
  108. TextDrawLetterSize(StatsText0, 0.000000, 11.899996);
  109. TextDrawColor(StatsText0, -1);
  110. TextDrawSetOutline(StatsText0, 0);
  111. TextDrawSetProportional(StatsText0, 1);
  112. TextDrawSetShadow(StatsText0, 1);
  113. TextDrawUseBox(StatsText0, 1);
  114. TextDrawBoxColor(StatsText0, 0x0000008B);
  115. TextDrawTextSize(StatsText0, 20.000000, 0.000000);
  116.  
  117. StatsText1 = TextDrawCreate(112.000000, 116.000000, "Player Information");
  118. TextDrawAlignment(StatsText1, 2);
  119. TextDrawBackgroundColor(StatsText1, 255);
  120. TextDrawFont(StatsText1, 3);
  121. TextDrawLetterSize(StatsText1, 0.389999, 1.700000);
  122. TextDrawColor(StatsText1, 65535);
  123. TextDrawSetOutline(StatsText1, 0);
  124. TextDrawSetProportional(StatsText1, 1);
  125. TextDrawSetShadow(StatsText1, 1);
  126.  
  127. StatsText2 = TextDrawCreate(110.000000, 136.000000, "Name:");
  128. TextDrawAlignment(StatsText2, 2);
  129. TextDrawBackgroundColor(StatsText2, 255);
  130. TextDrawFont(StatsText2, 1);
  131. TextDrawLetterSize(StatsText2, 0.219999, 1.000000);
  132. TextDrawColor(StatsText2, -65281);
  133. TextDrawSetOutline(StatsText2, 0);
  134. TextDrawSetProportional(StatsText2, 1);
  135. TextDrawSetShadow(StatsText2, 1);
  136.  
  137. StatsText3 = TextDrawCreate(110.000000, 146.000000, "Kills:");
  138. TextDrawAlignment(StatsText3, 2);
  139. TextDrawBackgroundColor(StatsText3, 255);
  140. TextDrawFont(StatsText3, 1);
  141. TextDrawLetterSize(StatsText3, 0.219999, 1.000000);
  142. TextDrawColor(StatsText3, -65281);
  143. TextDrawSetOutline(StatsText3, 0);
  144. TextDrawSetProportional(StatsText3, 1);
  145. TextDrawSetShadow(StatsText3, 1);
  146.  
  147. StatsText4 = TextDrawCreate(110.000000, 156.000000, "Deaths:");
  148. TextDrawAlignment(StatsText4, 2);
  149. TextDrawBackgroundColor(StatsText4, 255);
  150. TextDrawFont(StatsText4, 1);
  151. TextDrawLetterSize(StatsText4, 0.219999, 1.000000);
  152. TextDrawColor(StatsText4, -65281);
  153. TextDrawSetOutline(StatsText4, 0);
  154. TextDrawSetProportional(StatsText4, 1);
  155. TextDrawSetShadow(StatsText4, 1);
  156.  
  157. StatsText5 = TextDrawCreate(112.000000, 173.000000, "General Information");
  158. TextDrawAlignment(StatsText5, 2);
  159. TextDrawBackgroundColor(StatsText5, 255);
  160. TextDrawFont(StatsText5, 2);
  161. TextDrawLetterSize(StatsText5, 0.219999, 1.000000);
  162. TextDrawColor(StatsText5, -1);
  163. TextDrawSetOutline(StatsText5, 0);
  164. TextDrawSetProportional(StatsText5, 1);
  165. TextDrawSetShadow(StatsText5, 1);
  166.  
  167. StatsText6 = TextDrawCreate(110.000000, 186.000000, "Money:");
  168. TextDrawAlignment(StatsText6, 2);
  169. TextDrawBackgroundColor(StatsText6, 255);
  170. TextDrawFont(StatsText6, 1);
  171. TextDrawLetterSize(StatsText6, 0.219999, 1.000000);
  172. TextDrawColor(StatsText6, -16776961);
  173. TextDrawSetOutline(StatsText6, 0);
  174. TextDrawSetProportional(StatsText6, 1);
  175. TextDrawSetShadow(StatsText6, 1);
  176.  
  177. StatsText7 = TextDrawCreate(110.000000, 196.000000, "Skin:");
  178. TextDrawAlignment(StatsText7, 2);
  179. TextDrawBackgroundColor(StatsText7, 255);
  180. TextDrawFont(StatsText7, 1);
  181. TextDrawLetterSize(StatsText7, 0.219999, 1.000000);
  182. TextDrawColor(StatsText7, -16776961);
  183. TextDrawSetOutline(StatsText7, 0);
  184. TextDrawSetProportional(StatsText7, 1);
  185. TextDrawSetShadow(StatsText7, 1);
  186.  
  187. StatsText8 = TextDrawCreate(110.000000, 206.000000, "VIP:");
  188. TextDrawAlignment(StatsText8, 2);
  189. TextDrawBackgroundColor(StatsText8, 255);
  190. TextDrawFont(StatsText8, 1);
  191. TextDrawLetterSize(StatsText8, 0.219999, 1.000000);
  192. TextDrawColor(StatsText8, -16776961);
  193. TextDrawSetOutline(StatsText8, 0);
  194. TextDrawSetProportional(StatsText8, 1);
  195. TextDrawSetShadow(StatsText8, 1);
  196.  
  197. StatsText9 = TextDrawCreate(62.000000, 233.000000, "Extra Informations");
  198. TextDrawBackgroundColor(StatsText9, 255);
  199. TextDrawFont(StatsText9, 2);
  200. TextDrawLetterSize(StatsText9, 0.219999, 1.000000);
  201. TextDrawColor(StatsText9, -1);
  202. TextDrawSetOutline(StatsText9, 0);
  203. TextDrawSetProportional(StatsText9, 1);
  204. TextDrawSetShadow(StatsText9, 1);
  205.  
  206. StatsText10 = TextDrawCreate(110.000000, 246.000000, "Muted:");
  207. TextDrawAlignment(StatsText10, 2);
  208. TextDrawBackgroundColor(StatsText10, 255);
  209. TextDrawFont(StatsText10, 1);
  210. TextDrawLetterSize(StatsText10, 0.219999, 1.000000);
  211. TextDrawColor(StatsText10, 16711935);
  212. TextDrawSetOutline(StatsText10, 0);
  213. TextDrawSetProportional(StatsText10, 1);
  214. TextDrawSetShadow(StatsText10, 1);
  215.  
  216. StatsText11 = TextDrawCreate(110.000000, 256.000000, "Warnings:");
  217. TextDrawAlignment(StatsText11, 2);
  218. TextDrawBackgroundColor(StatsText11, 255);
  219. TextDrawFont(StatsText11, 1);
  220. TextDrawLetterSize(StatsText11, 0.219999, 1.000000);
  221. TextDrawColor(StatsText11, 16711935);
  222. TextDrawSetOutline(StatsText11, 0);
  223. TextDrawSetProportional(StatsText11, 1);
  224. TextDrawSetShadow(StatsText11, 1);
  225.  
  226. StatsText13 = TextDrawCreate(111.000000, 314.000000, "~G~- ~Y~Press LMB to close");
  227. TextDrawAlignment(StatsText13, 2);
  228. TextDrawBackgroundColor(StatsText13, 255);
  229. TextDrawFont(StatsText13, 1);
  230. TextDrawLetterSize(StatsText13, 0.189999, 0.699998);
  231. TextDrawSetOutline(StatsText13, 0);
  232. TextDrawSetProportional(StatsText13, 1);
  233. TextDrawSetShadow(StatsText13, 1);
  234. return 1;
  235. }
  236.  
  237. public OnFilterScriptExit()
  238. {
  239. return 1;
  240. }
  241. #endif
  242.  
  243. public OnPlayerRequestClass(playerid, classid)
  244. {
  245. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  246. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  247. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  248. return 1;
  249. }
  250.  
  251. public OnPlayerConnect(playerid)
  252. {
  253. if(fexist(UserPath(playerid)))
  254. {
  255. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  256. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
  257. }
  258. else
  259. {
  260. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
  261. }
  262. }
  263.  
  264. public OnPlayerDisconnect(playerid, reason)
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnPlayerSpawn(playerid)
  270. {
  271. return 1;
  272. }
  273.  
  274. public OnPlayerDeath(playerid, killerid, reason)
  275. {
  276. return 1;
  277. }
  278.  
  279. public OnVehicleSpawn(vehicleid)
  280. {
  281. return 1;
  282. }
  283.  
  284. public OnVehicleDeath(vehicleid, killerid)
  285. {
  286. return 1;
  287. }
  288.  
  289. public OnPlayerText(playerid, text[])
  290. {
  291. return 1;
  292. }
  293.  
  294. public OnPlayerCommandText(playerid, cmdtext[])
  295. {
  296. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  297. {
  298. // Do something here
  299. return 1;
  300. }
  301. return 0;
  302. }
  303.  
  304. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  305. {
  306. return 1;
  307. }
  308.  
  309. public OnPlayerExitVehicle(playerid, vehicleid)
  310. {
  311. return 1;
  312. }
  313.  
  314. public OnPlayerStateChange(playerid, newstate, oldstate)
  315. {
  316. return 1;
  317. }
  318.  
  319. public OnPlayerEnterCheckpoint(playerid)
  320. {
  321. return 1;
  322. }
  323.  
  324. public OnPlayerLeaveCheckpoint(playerid)
  325. {
  326. return 1;
  327. }
  328.  
  329. public OnPlayerEnterRaceCheckpoint(playerid)
  330. {
  331. return 1;
  332. }
  333.  
  334. public OnPlayerLeaveRaceCheckpoint(playerid)
  335. {
  336. return 1;
  337. }
  338.  
  339. public OnRconCommand(cmd[])
  340. {
  341. return 1;
  342. }
  343.  
  344. public OnPlayerRequestSpawn(playerid)
  345. {
  346. return 1;
  347. }
  348.  
  349. public OnObjectMoved(objectid)
  350. {
  351. return 1;
  352. }
  353.  
  354. public OnPlayerObjectMoved(playerid, objectid)
  355. {
  356. return 1;
  357. }
  358.  
  359. public OnPlayerPickUpPickup(playerid, pickupid)
  360. {
  361. return 1;
  362. }
  363.  
  364. public OnVehicleMod(playerid, vehicleid, componentid)
  365. {
  366. return 1;
  367. }
  368.  
  369. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  370. {
  371. return 1;
  372. }
  373.  
  374. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  375. {
  376. return 1;
  377. }
  378.  
  379. public OnPlayerSelectedMenuRow(playerid, row)
  380. {
  381. return 1;
  382. }
  383.  
  384. public OnPlayerExitedMenu(playerid)
  385. {
  386. return 1;
  387. }
  388.  
  389. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  390. {
  391. return 1;
  392. }
  393.  
  394. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  395. {
  396. if(newkeys == KEY_FIRE)
  397. {
  398. TextDrawHideForPlayer(playerid,StatsText0);
  399. TextDrawHideForPlayer(playerid,StatsText1);
  400. TextDrawHideForPlayer(playerid,StatsText2);
  401. TextDrawHideForPlayer(playerid,StatsText3);
  402. TextDrawHideForPlayer(playerid,StatsText4);
  403. TextDrawHideForPlayer(playerid,StatsText5);
  404. TextDrawHideForPlayer(playerid,StatsText6);
  405. TextDrawHideForPlayer(playerid,StatsText7);
  406. TextDrawHideForPlayer(playerid,StatsText8);
  407. TextDrawHideForPlayer(playerid,StatsText9);
  408. TextDrawHideForPlayer(playerid,StatsText10);
  409. TextDrawHideForPlayer(playerid,StatsText11);
  410. TextDrawHideForPlayer(playerid,StatsText13);
  411. }
  412. return 1;
  413. }
  414.  
  415. public OnRconLoginAttempt(ip[], password[], success)
  416. {
  417. return 1;
  418. }
  419.  
  420. public OnPlayerUpdate(playerid)
  421. {
  422. return 1;
  423. }
  424.  
  425. public OnPlayerStreamIn(playerid, forplayerid)
  426. {
  427. return 1;
  428. }
  429.  
  430. public OnPlayerStreamOut(playerid, forplayerid)
  431. {
  432. return 1;
  433. }
  434.  
  435. public OnVehicleStreamIn(vehicleid, forplayerid)
  436. {
  437. return 1;
  438. }
  439.  
  440. public OnVehicleStreamOut(vehicleid, forplayerid)
  441. {
  442. return 1;
  443. }
  444.  
  445. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  446. {
  447. if(dialogid == 1234)
  448. {
  449. if(!response) return Kick(playerid);
  450. if(response)
  451. {
  452. if(fexist(UserPath(playerid)))
  453. {
  454. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  455. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
  456. }
  457. else
  458. {
  459. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
  460. }
  461. }
  462. }
  463. if(dialogid == 1)
  464. {
  465. if (!response) return Kick(playerid);
  466. if(response)
  467. {
  468. if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
  469. gPlayerLogged[playerid] = 1;
  470. SetSpawnInfo( playerid, 0, 23, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  471. SpawnPlayer(playerid);
  472. new INI:File = INI_Open(UserPath(playerid));
  473. INI_SetTag(File,"data");
  474. INI_WriteInt(File,"Password",udb_hash(inputtext));
  475. INI_WriteInt(File, "Kills",PlayerInfo[playerid][pKills] = 0);
  476. INI_WriteInt(File, "Deaths",PlayerInfo[playerid][pDeaths] = 0);
  477. INI_WriteInt(File, "Money",PlayerInfo[playerid][pCash] = 0);
  478. INI_WriteInt(File, "Admin",PlayerInfo[playerid][pAdmin] = 0);
  479. INI_WriteInt(File, "Vip", PlayerInfo[playerid][pVip] = 0);
  480. INI_WriteInt(File, "Model", PlayerInfo[playerid][pModel] = 23);
  481. INI_WriteInt(File, "Warns", PlayerInfo[playerid][pWarns] = 0);
  482. INI_WriteInt(File, "Muted", PlayerInfo[playerid][pMuted] = 0);
  483. INI_WriteInt(File, "MuteTime", PlayerInfo[playerid][pMuteTime] = 0);
  484. INI_Close(File);
  485. }
  486. }
  487. if(dialogid == 2)
  488. {
  489. if(!response ) return Kick (playerid);
  490. if(response)
  491. {
  492. if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  493. {
  494. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  495. GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  496. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  497. SetSpawnInfo( playerid, 0, PlayerInfo[playerid][pModel], 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  498. SpawnPlayer(playerid);
  499. gPlayerLogged[playerid] = 1;
  500. }
  501. else
  502. {
  503. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
  504. gPlayerLogTries[playerid] += 1;
  505. if(gPlayerLogTries[playerid] == 3)
  506. {
  507. Kick(playerid);
  508. }
  509. }
  510. }
  511. }
  512. return 1;
  513. }
  514.  
  515. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  516. {
  517. return 1;
  518. }
  519.  
  520. //===============================[Commands]=====================================
  521. //---------[Stats]-------
  522. CMD:stats(playerid, params[])
  523. {
  524. if(gPlayerLogged[playerid] == 1) //Check if the player is logged in.
  525. {
  526. //Defines all the variables to show in the string
  527. new string[128];
  528. new name[MAX_PLAYER_NAME];
  529. GetPlayerName(playerid, name, sizeof(name));
  530. new cash = GetPlayerMoney(playerid);
  531. new atext[20];
  532. if(PlayerInfo[playerid][pMuted] == 0)
  533. { atext = "No"; }
  534. else if(PlayerInfo[playerid][pMuted] == 1)
  535. { atext = "Yes"; }
  536. new drank[20];
  537. if(PlayerInfo[playerid][pVip] == 1)
  538. { drank = "Bronze Donator"; }
  539. else if(PlayerInfo[playerid][pVip] == 2)
  540. { drank = "Silver Donator"; }
  541. else if(PlayerInfo[playerid][pVip] == 3)
  542. { drank = "Gold Donator"; }
  543. else if(PlayerInfo[playerid][pVip] == 4)
  544. { drank = "Platinum Donator"; }
  545. else { drank = "None"; }
  546. new warns = PlayerInfo[playerid][pWarns];
  547. new skin = PlayerInfo[playerid][pModel];
  548. //Here the script will show the variables in a string and parse them to the textdraws
  549. format(string,sizeof(string),"~G~- ~Y~Name: %s",name);
  550. TextDrawSetString(Text:StatsText2,string);
  551.  
  552. format(string,sizeof(string),"~G~- ~Y~Kills: %d",PlayerInfo[playerid][pKills]);
  553. TextDrawSetString(Text:StatsText3,string);
  554.  
  555. format(string,sizeof(string),"~G~- ~Y~Deaths: %d",PlayerInfo[playerid][pDeaths]);
  556. TextDrawSetString(Text:StatsText4,string);
  557.  
  558. format(string,sizeof(string),"~G~- ~Y~Money: %d",cash);
  559. TextDrawSetString(Text:StatsText6,string);
  560.  
  561. format(string,sizeof(string),"~G~- ~Y~Skin: %d",skin);
  562. TextDrawSetString(Text:StatsText7,string);
  563.  
  564. format(string,sizeof(string),"~G~- ~Y~VIP: %s",drank);
  565. TextDrawSetString(Text:StatsText8,string);
  566.  
  567. format(string,sizeof(string),"~G~- ~Y~Muted: %s",atext);
  568. TextDrawSetString(Text:StatsText10,string);
  569.  
  570. format(string,sizeof(string),"~G~- ~Y~Warnings: %d",warns);
  571. TextDrawSetString(Text:StatsText11,string);
  572.  
  573. //Shows all the textdraws with the correct info!
  574. TextDrawShowForPlayer(playerid, StatsText0);
  575. TextDrawShowForPlayer(playerid, StatsText1);
  576. TextDrawShowForPlayer(playerid, StatsText2);
  577. TextDrawShowForPlayer(playerid, StatsText3);
  578. TextDrawShowForPlayer(playerid, StatsText4);
  579. TextDrawShowForPlayer(playerid, StatsText5);
  580. TextDrawShowForPlayer(playerid, StatsText6);
  581. TextDrawShowForPlayer(playerid, StatsText7);
  582. TextDrawShowForPlayer(playerid, StatsText8);
  583. TextDrawShowForPlayer(playerid, StatsText9);
  584. TextDrawShowForPlayer(playerid, StatsText10);
  585. TextDrawShowForPlayer(playerid, StatsText11);
  586. TextDrawShowForPlayer(playerid, StatsText13);
  587. }
  588. else
  589. {
  590. SendClientMessage(playerid, COLOR_GREY,"You are not logged in!");
  591. }
  592. return 1;
  593. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement