Advertisement
Rhayziin

[GM] Chose Skin Actors System

May 12th, 2015
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 19.09 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <a_actor>
  4.  
  5. main()
  6. {
  7.     print("\n----------------------------------");
  8.     print("[GM] ChoseSkinActor v0.1 - By Rhayziin");
  9.     print("----------------------------------\n");
  10. }
  11.  
  12. new Text:TDChoseActors[MAX_PLAYERS][20];
  13.  
  14. public OnGameModeInit()
  15. {
  16.     SetGameModeText("Blank Script");
  17.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  18.    
  19.     CreateActor(102, 1649.43, -1243.40, 129.36, 95.57); //Traficante
  20.     CreateActor(106, 1649.43, -1244.80, 129.36, 95.57); //Gangster
  21.     CreateActor(87, 1649.43, -1246.20, 129.36, 95.57); //Prostituta
  22.     CreateActor(113, 1649.43, -1247.60, 129.36, 95.57); //Mafioso
  23.     CreateActor(248, 1649.43, -1249.00, 129.36, 95.57); //Motoqueiro
  24.     CreateActor(306, 1649.43, -1250.40, 129.36, 95.57); //Policial
  25.     return 1;
  26. }
  27.  
  28. public OnGameModeExit() return print("[GM] ChoseSkin [DESCARREGADO]");
  29.  
  30. public OnPlayerRequestClass(playerid, classid)
  31. {
  32.     for(new i = 0; i < 100; ++i) SendClientMessage(playerid, -1, " ");
  33.  
  34.     TogglePlayerSpectating(playerid, true);
  35.  
  36.     InterpolateCameraPos(playerid, 1555.575195, -1249.134155, 123.893646, 1555.575195, -1249.134155, 123.893646, 1000);
  37.     InterpolateCameraLookAt(playerid, 1560.565063, -1249.017822, 124.190345, 1560.565063, -1249.017822, 124.190345, 1000);
  38.  
  39.     SetTimerEx("ShowTDs", 5000, false, "ii", playerid, 1);
  40.    
  41.     SendClientMessage(playerid, 0x00FFFFFF, "{FF8000}[!] {00FFFF}Por favor, aguarde...");
  42.     SendClientMessage(playerid, -1, "{00FF00}Sistema criado por: {8000FF}Rhayziin");
  43.     return 1;
  44. }
  45.  
  46. public OnPlayerConnect(playerid)
  47. {
  48.     SetPVarInt(playerid, "FuncPlayerServidor", -1);
  49.     for(new i = 0; i < 100; ++i) SendClientMessage(playerid, -1, " ");
  50.  
  51.     TDChoseActors[playerid][0] = TextDrawCreate(65.000000, 155.000000, "LD_BEAT:down");
  52.     TextDrawBackgroundColor(TDChoseActors[playerid][0], 255);
  53.     TextDrawFont(TDChoseActors[playerid][0], 4);
  54.     TextDrawLetterSize(TDChoseActors[playerid][0], 0.500000, 1.000000);
  55.     TextDrawColor(TDChoseActors[playerid][0], 255);
  56.     TextDrawSetOutline(TDChoseActors[playerid][0], 0);
  57.     TextDrawSetProportional(TDChoseActors[playerid][0], 1);
  58.     TextDrawSetShadow(TDChoseActors[playerid][0], 1);
  59.     TextDrawUseBox(TDChoseActors[playerid][0], 1);
  60.     TextDrawBoxColor(TDChoseActors[playerid][0], 255);
  61.     TextDrawTextSize(TDChoseActors[playerid][0], 20.000000, 20.000000);
  62.  
  63.     TDChoseActors[playerid][1] = TextDrawCreate(79.000000, 140.000000, "_");
  64.     TextDrawAlignment(TDChoseActors[playerid][1], 2);
  65.     TextDrawBackgroundColor(TDChoseActors[playerid][1], 255);
  66.     TextDrawFont(TDChoseActors[playerid][1], 3);
  67.     TextDrawLetterSize(TDChoseActors[playerid][1], 0.539999, 2.000000);
  68.     TextDrawColor(TDChoseActors[playerid][1], -1);
  69.     TextDrawSetOutline(TDChoseActors[playerid][1], 0);
  70.     TextDrawSetProportional(TDChoseActors[playerid][1], 1);
  71.     TextDrawSetShadow(TDChoseActors[playerid][1], 1);
  72.     TextDrawUseBox(TDChoseActors[playerid][1], 1);
  73.     TextDrawBoxColor(TDChoseActors[playerid][1], 255);
  74.     TextDrawTextSize(TDChoseActors[playerid][1], 140.000000, 122.000000);
  75.  
  76.     TDChoseActors[playerid][2] = TextDrawCreate(79.000000, 141.000000, "TRAFICANTE");
  77.     TextDrawAlignment(TDChoseActors[playerid][2], 2);
  78.     TextDrawBackgroundColor(TDChoseActors[playerid][2], 255);
  79.     TextDrawFont(TDChoseActors[playerid][2], 1);
  80.     TextDrawLetterSize(TDChoseActors[playerid][2], 0.509999, 1.600000);
  81.     TextDrawColor(TDChoseActors[playerid][2], -1);
  82.     TextDrawSetOutline(TDChoseActors[playerid][2], 0);
  83.     TextDrawSetProportional(TDChoseActors[playerid][2], 1);
  84.     TextDrawSetShadow(TDChoseActors[playerid][2], 1);
  85.     TextDrawUseBox(TDChoseActors[playerid][2], 1);
  86.     TextDrawBoxColor(TDChoseActors[playerid][2], 255);
  87.     TextDrawTextSize(TDChoseActors[playerid][2], 15.000000, 119.000000);
  88.  
  89.     TDChoseActors[playerid][3] = TextDrawCreate(157.000000, 306.000000, "LD_BEAT:up");
  90.     TextDrawBackgroundColor(TDChoseActors[playerid][3], 255);
  91.     TextDrawFont(TDChoseActors[playerid][3], 4);
  92.     TextDrawLetterSize(TDChoseActors[playerid][3], 0.500000, 1.000000);
  93.     TextDrawColor(TDChoseActors[playerid][3], 255);
  94.     TextDrawSetOutline(TDChoseActors[playerid][3], 0);
  95.     TextDrawSetProportional(TDChoseActors[playerid][3], 1);
  96.     TextDrawSetShadow(TDChoseActors[playerid][3], 1);
  97.     TextDrawUseBox(TDChoseActors[playerid][3], 1);
  98.     TextDrawBoxColor(TDChoseActors[playerid][3], 255);
  99.     TextDrawTextSize(TDChoseActors[playerid][3], 20.000000, 20.000000);
  100.  
  101.     TDChoseActors[playerid][4] = TextDrawCreate(167.000000, 322.000000, "_");
  102.     TextDrawAlignment(TDChoseActors[playerid][4], 2);
  103.     TextDrawBackgroundColor(TDChoseActors[playerid][4], 255);
  104.     TextDrawFont(TDChoseActors[playerid][4], 3);
  105.     TextDrawLetterSize(TDChoseActors[playerid][4], 0.539999, 2.000000);
  106.     TextDrawColor(TDChoseActors[playerid][4], -1);
  107.     TextDrawSetOutline(TDChoseActors[playerid][4], 0);
  108.     TextDrawSetProportional(TDChoseActors[playerid][4], 1);
  109.     TextDrawSetShadow(TDChoseActors[playerid][4], 1);
  110.     TextDrawUseBox(TDChoseActors[playerid][4], 1);
  111.     TextDrawBoxColor(TDChoseActors[playerid][4], 255);
  112.     TextDrawTextSize(TDChoseActors[playerid][4], 140.000000, 122.000000);
  113.  
  114.     TDChoseActors[playerid][5] = TextDrawCreate(167.000000, 323.000000, "GANGSTER");
  115.     TextDrawAlignment(TDChoseActors[playerid][5], 2);
  116.     TextDrawBackgroundColor(TDChoseActors[playerid][5], 255);
  117.     TextDrawFont(TDChoseActors[playerid][5], 1);
  118.     TextDrawLetterSize(TDChoseActors[playerid][5], 0.509999, 1.600000);
  119.     TextDrawColor(TDChoseActors[playerid][5], -1);
  120.     TextDrawSetOutline(TDChoseActors[playerid][5], 0);
  121.     TextDrawSetProportional(TDChoseActors[playerid][5], 1);
  122.     TextDrawSetShadow(TDChoseActors[playerid][5], 1);
  123.     TextDrawUseBox(TDChoseActors[playerid][5], 1);
  124.     TextDrawBoxColor(TDChoseActors[playerid][5], 255);
  125.     TextDrawTextSize(TDChoseActors[playerid][5], 15.000000, 119.000000);
  126.  
  127.     TDChoseActors[playerid][6] = TextDrawCreate(252.000000, 155.000000, "LD_BEAT:down");
  128.     TextDrawBackgroundColor(TDChoseActors[playerid][6], 255);
  129.     TextDrawFont(TDChoseActors[playerid][6], 4);
  130.     TextDrawLetterSize(TDChoseActors[playerid][6], 0.500000, 1.000000);
  131.     TextDrawColor(TDChoseActors[playerid][6], 255);
  132.     TextDrawSetOutline(TDChoseActors[playerid][6], 0);
  133.     TextDrawSetProportional(TDChoseActors[playerid][6], 1);
  134.     TextDrawSetShadow(TDChoseActors[playerid][6], 1);
  135.     TextDrawUseBox(TDChoseActors[playerid][6], 1);
  136.     TextDrawBoxColor(TDChoseActors[playerid][6], 255);
  137.     TextDrawTextSize(TDChoseActors[playerid][6], 20.000000, 20.000000);
  138.  
  139.     TDChoseActors[playerid][7] = TextDrawCreate(267.000000, 140.000000, "_");
  140.     TextDrawAlignment(TDChoseActors[playerid][7], 2);
  141.     TextDrawBackgroundColor(TDChoseActors[playerid][7], 255);
  142.     TextDrawFont(TDChoseActors[playerid][7], 3);
  143.     TextDrawLetterSize(TDChoseActors[playerid][7], 0.539999, 2.000000);
  144.     TextDrawColor(TDChoseActors[playerid][7], -1);
  145.     TextDrawSetOutline(TDChoseActors[playerid][7], 0);
  146.     TextDrawSetProportional(TDChoseActors[playerid][7], 1);
  147.     TextDrawSetShadow(TDChoseActors[playerid][7], 1);
  148.     TextDrawUseBox(TDChoseActors[playerid][7], 1);
  149.     TextDrawBoxColor(TDChoseActors[playerid][7], 255);
  150.     TextDrawTextSize(TDChoseActors[playerid][7], 140.000000, 122.000000);
  151.  
  152.     TDChoseActors[playerid][8] = TextDrawCreate(267.000000, 141.000000, "PROSTITUTA");
  153.     TextDrawAlignment(TDChoseActors[playerid][8], 2);
  154.     TextDrawBackgroundColor(TDChoseActors[playerid][8], 255);
  155.     TextDrawFont(TDChoseActors[playerid][8], 1);
  156.     TextDrawLetterSize(TDChoseActors[playerid][8], 0.509999, 1.600000);
  157.     TextDrawColor(TDChoseActors[playerid][8], -1);
  158.     TextDrawSetOutline(TDChoseActors[playerid][8], 0);
  159.     TextDrawSetProportional(TDChoseActors[playerid][8], 1);
  160.     TextDrawSetShadow(TDChoseActors[playerid][8], 1);
  161.     TextDrawUseBox(TDChoseActors[playerid][8], 1);
  162.     TextDrawBoxColor(TDChoseActors[playerid][8], 255);
  163.     TextDrawTextSize(TDChoseActors[playerid][8], 15.000000, 119.000000);
  164.  
  165.     TDChoseActors[playerid][9] = TextDrawCreate(351.000000, 306.000000, "LD_BEAT:up");
  166.     TextDrawBackgroundColor(TDChoseActors[playerid][9], 255);
  167.     TextDrawFont(TDChoseActors[playerid][9], 4);
  168.     TextDrawLetterSize(TDChoseActors[playerid][9], 0.500000, 1.000000);
  169.     TextDrawColor(TDChoseActors[playerid][9], 255);
  170.     TextDrawSetOutline(TDChoseActors[playerid][9], 0);
  171.     TextDrawSetProportional(TDChoseActors[playerid][9], 1);
  172.     TextDrawSetShadow(TDChoseActors[playerid][9], 1);
  173.     TextDrawUseBox(TDChoseActors[playerid][9], 1);
  174.     TextDrawBoxColor(TDChoseActors[playerid][9], 255);
  175.     TextDrawTextSize(TDChoseActors[playerid][9], 20.000000, 20.000000);
  176.  
  177.     TDChoseActors[playerid][10] = TextDrawCreate(358.000000, 322.000000, "_");
  178.     TextDrawAlignment(TDChoseActors[playerid][10], 2);
  179.     TextDrawBackgroundColor(TDChoseActors[playerid][10], 255);
  180.     TextDrawFont(TDChoseActors[playerid][10], 3);
  181.     TextDrawLetterSize(TDChoseActors[playerid][10], 0.539999, 2.000000);
  182.     TextDrawColor(TDChoseActors[playerid][10], -1);
  183.     TextDrawSetOutline(TDChoseActors[playerid][10], 0);
  184.     TextDrawSetProportional(TDChoseActors[playerid][10], 1);
  185.     TextDrawSetShadow(TDChoseActors[playerid][10], 1);
  186.     TextDrawUseBox(TDChoseActors[playerid][10], 1);
  187.     TextDrawBoxColor(TDChoseActors[playerid][10], 255);
  188.     TextDrawTextSize(TDChoseActors[playerid][10], 140.000000, 122.000000);
  189.  
  190.     TDChoseActors[playerid][11] = TextDrawCreate(442.000000, 141.000000, "MOTOQUEIRO");
  191.     TextDrawAlignment(TDChoseActors[playerid][11], 2);
  192.     TextDrawBackgroundColor(TDChoseActors[playerid][11], 255);
  193.     TextDrawFont(TDChoseActors[playerid][11], 1);
  194.     TextDrawLetterSize(TDChoseActors[playerid][11], 0.509999, 1.600000);
  195.     TextDrawColor(TDChoseActors[playerid][11], -1);
  196.     TextDrawSetOutline(TDChoseActors[playerid][11], 0);
  197.     TextDrawSetProportional(TDChoseActors[playerid][11], 1);
  198.     TextDrawSetShadow(TDChoseActors[playerid][11], 1);
  199.     TextDrawUseBox(TDChoseActors[playerid][11], 1);
  200.     TextDrawBoxColor(TDChoseActors[playerid][11], 255);
  201.     TextDrawTextSize(TDChoseActors[playerid][11], 15.000000, 119.000000);
  202.  
  203.     TDChoseActors[playerid][12] = TextDrawCreate(439.000000, 155.000000, "LD_BEAT:down");
  204.     TextDrawBackgroundColor(TDChoseActors[playerid][12], 255);
  205.     TextDrawFont(TDChoseActors[playerid][12], 4);
  206.     TextDrawLetterSize(TDChoseActors[playerid][12], 0.500000, 1.000000);
  207.     TextDrawColor(TDChoseActors[playerid][12], 255);
  208.     TextDrawSetOutline(TDChoseActors[playerid][12], 0);
  209.     TextDrawSetProportional(TDChoseActors[playerid][12], 1);
  210.     TextDrawSetShadow(TDChoseActors[playerid][12], 1);
  211.     TextDrawUseBox(TDChoseActors[playerid][12], 1);
  212.     TextDrawBoxColor(TDChoseActors[playerid][12], 255);
  213.     TextDrawTextSize(TDChoseActors[playerid][12], 20.000000, 20.000000);
  214.  
  215.     TDChoseActors[playerid][13] = TextDrawCreate(442.000000, 140.000000, "_");
  216.     TextDrawAlignment(TDChoseActors[playerid][13], 2);
  217.     TextDrawBackgroundColor(TDChoseActors[playerid][13], 255);
  218.     TextDrawFont(TDChoseActors[playerid][13], 3);
  219.     TextDrawLetterSize(TDChoseActors[playerid][13], 0.539999, 2.000000);
  220.     TextDrawColor(TDChoseActors[playerid][13], -1);
  221.     TextDrawSetOutline(TDChoseActors[playerid][13], 0);
  222.     TextDrawSetProportional(TDChoseActors[playerid][13], 1);
  223.     TextDrawSetShadow(TDChoseActors[playerid][13], 1);
  224.     TextDrawUseBox(TDChoseActors[playerid][13], 1);
  225.     TextDrawBoxColor(TDChoseActors[playerid][13], 255);
  226.     TextDrawTextSize(TDChoseActors[playerid][13], 140.000000, 122.000000);
  227.  
  228.     TDChoseActors[playerid][14] = TextDrawCreate(358.000000, 323.000000, "MAFIOSO");
  229.     TextDrawAlignment(TDChoseActors[playerid][14], 2);
  230.     TextDrawBackgroundColor(TDChoseActors[playerid][14], 255);
  231.     TextDrawFont(TDChoseActors[playerid][14], 1);
  232.     TextDrawLetterSize(TDChoseActors[playerid][14], 0.509999, 1.600000);
  233.     TextDrawColor(TDChoseActors[playerid][14], -1);
  234.     TextDrawSetOutline(TDChoseActors[playerid][14], 0);
  235.     TextDrawSetProportional(TDChoseActors[playerid][14], 1);
  236.     TextDrawSetShadow(TDChoseActors[playerid][14], 1);
  237.     TextDrawUseBox(TDChoseActors[playerid][14], 1);
  238.     TextDrawBoxColor(TDChoseActors[playerid][14], 255);
  239.     TextDrawTextSize(TDChoseActors[playerid][14], 15.000000, 119.000000);
  240.  
  241.     TDChoseActors[playerid][15] = TextDrawCreate(539.000000, 306.000000, "LD_BEAT:up");
  242.     TextDrawBackgroundColor(TDChoseActors[playerid][15], 255);
  243.     TextDrawFont(TDChoseActors[playerid][15], 4);
  244.     TextDrawLetterSize(TDChoseActors[playerid][15], 0.500000, 1.000000);
  245.     TextDrawColor(TDChoseActors[playerid][15], 255);
  246.     TextDrawSetOutline(TDChoseActors[playerid][15], 0);
  247.     TextDrawSetProportional(TDChoseActors[playerid][15], 1);
  248.     TextDrawSetShadow(TDChoseActors[playerid][15], 1);
  249.     TextDrawUseBox(TDChoseActors[playerid][15], 1);
  250.     TextDrawBoxColor(TDChoseActors[playerid][15], 255);
  251.     TextDrawTextSize(TDChoseActors[playerid][15], 20.000000, 20.000000);
  252.  
  253.     TDChoseActors[playerid][16] = TextDrawCreate(547.000000, 322.000000, "_");
  254.     TextDrawAlignment(TDChoseActors[playerid][16], 2);
  255.     TextDrawBackgroundColor(TDChoseActors[playerid][16], 255);
  256.     TextDrawFont(TDChoseActors[playerid][16], 3);
  257.     TextDrawLetterSize(TDChoseActors[playerid][16], 0.539999, 2.000000);
  258.     TextDrawColor(TDChoseActors[playerid][16], -1);
  259.     TextDrawSetOutline(TDChoseActors[playerid][16], 0);
  260.     TextDrawSetProportional(TDChoseActors[playerid][16], 1);
  261.     TextDrawSetShadow(TDChoseActors[playerid][16], 1);
  262.     TextDrawUseBox(TDChoseActors[playerid][16], 1);
  263.     TextDrawBoxColor(TDChoseActors[playerid][16], 255);
  264.     TextDrawTextSize(TDChoseActors[playerid][16], 140.000000, 122.000000);
  265.  
  266.     TDChoseActors[playerid][17] = TextDrawCreate(548.000000, 323.000000, "POLICIAL");
  267.     TextDrawAlignment(TDChoseActors[playerid][17], 2);
  268.     TextDrawBackgroundColor(TDChoseActors[playerid][17], 255);
  269.     TextDrawFont(TDChoseActors[playerid][17], 1);
  270.     TextDrawLetterSize(TDChoseActors[playerid][17], 0.509999, 1.600000);
  271.     TextDrawColor(TDChoseActors[playerid][17], -1);
  272.     TextDrawSetOutline(TDChoseActors[playerid][17], 0);
  273.     TextDrawSetProportional(TDChoseActors[playerid][17], 1);
  274.     TextDrawSetShadow(TDChoseActors[playerid][17], 1);
  275.     TextDrawUseBox(TDChoseActors[playerid][17], 1);
  276.     TextDrawBoxColor(TDChoseActors[playerid][17], 255);
  277.     TextDrawTextSize(TDChoseActors[playerid][17], 15.000000, 119.000000);
  278.  
  279.     TDChoseActors[playerid][18] = TextDrawCreate(-730.000000, 58.000000, "_");
  280.     TextDrawBackgroundColor(TDChoseActors[playerid][18], 255);
  281.     TextDrawFont(TDChoseActors[playerid][18], 1);
  282.     TextDrawLetterSize(TDChoseActors[playerid][18], 0.959999, 4.199999);
  283.     TextDrawColor(TDChoseActors[playerid][18], -1);
  284.     TextDrawSetOutline(TDChoseActors[playerid][18], 0);
  285.     TextDrawSetProportional(TDChoseActors[playerid][18], 1);
  286.     TextDrawSetShadow(TDChoseActors[playerid][18], 1);
  287.     TextDrawUseBox(TDChoseActors[playerid][18], 1);
  288.     TextDrawBoxColor(TDChoseActors[playerid][18], 255);
  289.     TextDrawTextSize(TDChoseActors[playerid][18], 1000.000000, 10.000000);
  290.  
  291.     TDChoseActors[playerid][19] = TextDrawCreate(20.000000, 56.000000, "ESCOLHA SUA FUNCAO NO SERVIDOR");
  292.     TextDrawBackgroundColor(TDChoseActors[playerid][19], 255);
  293.     TextDrawFont(TDChoseActors[playerid][19], 1);
  294.     TextDrawLetterSize(TDChoseActors[playerid][19], 0.959999, 4.199999);
  295.     TextDrawColor(TDChoseActors[playerid][19], -1);
  296.     TextDrawSetOutline(TDChoseActors[playerid][19], 0);
  297.     TextDrawSetProportional(TDChoseActors[playerid][19], 1);
  298.     TextDrawSetShadow(TDChoseActors[playerid][19], 1);
  299.  
  300.     TextDrawSetSelectable(TDChoseActors[playerid][2], true);
  301.     TextDrawSetSelectable(TDChoseActors[playerid][5], true);
  302.     TextDrawSetSelectable(TDChoseActors[playerid][8], true);
  303.     TextDrawSetSelectable(TDChoseActors[playerid][11], true);
  304.     TextDrawSetSelectable(TDChoseActors[playerid][14], true);
  305.     TextDrawSetSelectable(TDChoseActors[playerid][17], true);
  306.     return 1;
  307. }
  308.  
  309. public OnPlayerDisconnect(playerid, reason)
  310. {
  311.     HideChoseActors(playerid);
  312.     DeletePVar(playerid, "FuncPlayerServidor");
  313.     return 1;
  314. }
  315.  
  316. CMD:chose(playerid)
  317. {
  318.     ShowChoseActors(playerid);
  319.     return 1;
  320. }
  321.  
  322. public OnPlayerSpawn(playerid)
  323. {
  324.     TogglePlayerSpectating(playerid, false);
  325.  
  326.     switch(GetPVarInt(playerid, "FuncPlayerServidor"))
  327.     {
  328.         case 1: SetPlayerSkin(playerid, 102);
  329.         case 2: SetPlayerSkin(playerid, 106);
  330.         case 3: SetPlayerSkin(playerid, 87);
  331.         case 4: SetPlayerSkin(playerid, 248);
  332.         case 5: SetPlayerSkin(playerid, 113);
  333.         case 6: SetPlayerSkin(playerid, 306);
  334.         default: SetPlayerSkin(playerid, random(311));
  335.     }
  336.     return 1;
  337. }
  338.  
  339. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  340. {
  341.     if(clickedid == TDChoseActors[playerid][2])
  342.     {
  343.         HideChoseActors(playerid);
  344.         SetPVarInt(playerid, "FuncPlayerServidor", 1);
  345.         SpawnPlayer(playerid);
  346.         return 1;
  347.     }
  348.     if(clickedid == TDChoseActors[playerid][5])
  349.     {
  350.         HideChoseActors(playerid);
  351.         SetPVarInt(playerid, "FuncPlayerServidor", 2);
  352.         SpawnPlayer(playerid);
  353.         return 1;
  354.     }
  355.     if(clickedid == TDChoseActors[playerid][8])
  356.     {
  357.         HideChoseActors(playerid);
  358.         SetPVarInt(playerid, "FuncPlayerServidor", 3);
  359.         SpawnPlayer(playerid);
  360.         return 1;
  361.     }
  362.     if(clickedid == TDChoseActors[playerid][11])
  363.     {
  364.         HideChoseActors(playerid);
  365.         SetPVarInt(playerid, "FuncPlayerServidor", 4);
  366.         SpawnPlayer(playerid);
  367.         return 1;
  368.     }
  369.     if(clickedid == TDChoseActors[playerid][14])
  370.     {
  371.         HideChoseActors(playerid);
  372.         SetPVarInt(playerid, "FuncPlayerServidor", 5);
  373.         SpawnPlayer(playerid);
  374.         return 1;
  375.     }
  376.     if(clickedid == TDChoseActors[playerid][17])
  377.     {
  378.         HideChoseActors(playerid);
  379.         SetPVarInt(playerid, "FuncPlayerServidor", 6);
  380.         SpawnPlayer(playerid);
  381.         return 1;
  382.     }
  383.     return 1;
  384. }
  385.  
  386. forward ShowTDs(playerid, Show);
  387. public ShowTDs(playerid, Show)
  388. {
  389.     for(new i = 0; i < 100; ++i) SendClientMessage(playerid, -1, " ");
  390.     if(Show == 1)
  391.     {
  392.         InterpolateCameraPos(playerid, 1555.575195, -1249.134155, 123.893646, 1642.711303, -1247.102294, 129.074752, 3000);
  393.         InterpolateCameraLookAt(playerid, 1560.565063, -1249.017822, 124.190345, 1647.700683, -1247.067871, 129.398742, 3000);
  394.  
  395.         SetTimerEx("ShowTDs", 4000, false, "ii", playerid, 2);
  396.     }
  397.     else if(Show == 2)
  398.     {
  399.         SetPlayerCameraPos(playerid, 1642.711303, -1247.102294, 129.074752); //Só por segurança
  400.         SetPlayerCameraLookAt(playerid, 1647.700683, -1247.067871, 129.398742); //Só por segurança
  401.  
  402.         ShowChoseActors(playerid);
  403.     }
  404.     return 1;
  405. }
  406.  
  407. stock ShowChoseActors(playerid)
  408. {
  409.     for(new i = 0; i < 20; ++i)
  410.     {
  411.         TextDrawShowForPlayer(playerid, TDChoseActors[playerid][i]);
  412.     }
  413.     SelectTextDraw(playerid, 0x00FF00FF); //Cor quando o mouse fica encima de algum item!
  414.     return 1;
  415. }
  416.  
  417. stock HideChoseActors(playerid)
  418. {
  419.     for(new i = 0; i < 20; ++i)
  420.     {
  421.         TextDrawHideForPlayer(playerid, TDChoseActors[playerid][i]);
  422.     }
  423.     CancelSelectTextDraw(playerid);
  424.     return 1;
  425. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement