Advertisement
Guest User

[P.I.S] Player Info System

a guest
May 4th, 2011
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 17.45 KB | None | 0 0
  1. /*               [P.I.S] Player Info System
  2.            Este sistema mostra quanta vida o jogador tem (Percentagem %s por cima da barra da vida)          
  3.            Mostra 2 textDraws cada um dentro de uma box, contendo:          
  4.            1TextDraw:          
  5.            - Nome do jogador;          
  6.            - ID do jogador;          
  7.            - Dinheiro;          
  8.            - Ping;          
  9.            - IP;          
  10.  
  11.            2TextDraw:          
  12.            - Coordenada X;          
  13.            - Coordenada Y;          
  14.            - Coordenada Z;          
  15.            - Ângulo;          
  16.  
  17.            Créditos:          
  18.            Criador Geral: The Knight          
  19.            Box: LuxurioN
  20.  
  21. */
  22. //Includes
  23. #include <a_samp>
  24.  
  25. //Defines de Posições
  26. /* Cordenada X */
  27. #define CordenadaX 465.000000,340.000000
  28. #define LetterSizeX 0.299999,1.100000
  29. #define BoxColorX 0x00000066
  30. #define SetProportionalX 1
  31. #define SetOutlineX 1
  32. #define FontX 1
  33.  
  34. /* Cordenada Y */
  35. #define CordenadaY 465.000000, 350.000000
  36. #define LetterSizeY 0.299999,1.100000
  37. #define SetProportionalY 1
  38. #define SetOutlineY 1
  39. #define FontY 1
  40.  
  41. /*Cordenada Z */
  42. #define CordenadaZ 465.000000, 360.000000
  43. #define LetterSizeZ 0.299999,1.100000
  44. #define SetProportionalZ 1
  45. #define SetOutlineZ 1
  46. #define FontZ 1
  47.  
  48. /* Cordenada Angulo */
  49. #define CordenadaA 465.000000, 370.000000
  50. #define LetterSizeA 0.299999,1.100000
  51. #define SetProportionalA 1
  52. #define SetOutlineA 1
  53. #define FontA 1
  54.  
  55.  
  56. /* Saude */
  57. #define BarraVida 560.000000, 66.000000
  58. #define LetterSizeBV 0.299999,1.100000
  59. #define SetProportionalBV 1
  60. #define SetOutlineBV 1
  61. #define FontBV 1
  62.  
  63. /* Sentido */
  64. #define jSentido 465.000000, 380.000000
  65. #define LetterSizeS 0.299999,1.100000
  66. #define SetProportionalS 1
  67. #define SetOutlineS 1
  68. #define FontS 1
  69.  
  70. /* Nome */
  71. #define jNome 465.000000,225.000000
  72. #define LetterSizeN 0.299999,1.100000
  73. #define BoxColorN 0x00000066
  74. #define SetProportionalN 1
  75. #define SetOutlineN 1
  76. #define FontN 1
  77.  
  78. /* ID */
  79. #define jID 465.000000, 235.000000
  80. #define LetterSizeID 0.299999,1.100000
  81. #define SetProportionalID 1
  82. #define SetOutlineID 1
  83. #define FontID 1
  84.  
  85. /* Dinheiro */
  86. #define jDinheiro 465.000000, 245.000000
  87. #define LetterSizeD 0.299999,1.100000
  88. #define SetProportionalD 1
  89. #define SetOutlineD 1
  90. #define FontD 1
  91.  
  92. /* Ping */
  93. #define jPing 465.000000, 255.000000
  94. #define LetterSizeP 0.299999,1.100000
  95. #define SetProportionalP 1
  96. #define SetOutlineP 1
  97. #define FontP 1
  98.  
  99. /* IP */
  100. #define jIP 465.000000, 265.000000
  101. #define LetterSizeI 0.299999,1.100000
  102. #define SetProportionalI 1
  103. #define SetOutlineI 1
  104. #define FontI 1
  105.  
  106. //Textdraw Variaveis
  107. new Text: bVida[MAX_PLAYERS];
  108. new Text: cX[ MAX_PLAYERS ];
  109. new Text: cY[ MAX_PLAYERS ];
  110. new Text: cZ[ MAX_PLAYERS ];
  111. new Text: cA[ MAX_PLAYERS ];
  112. new Text: Nome[ MAX_PLAYERS ];
  113. new Text: ID[ MAX_PLAYERS ];
  114. new Text: Dinheiro[ MAX_PLAYERS ];
  115. new Text: Ping[ MAX_PLAYERS ];
  116. new Text: IP[ MAX_PLAYERS ];
  117. new Text: pLinha1[ MAX_PLAYERS ];
  118. new Text: pLinha2[ MAX_PLAYERS ];
  119. new Text: pLinha3[ MAX_PLAYERS ];
  120. new Text: pLinha4[ MAX_PLAYERS ];
  121. new Text: pBox[ MAX_PLAYERS ];
  122. new Text: pTitulo[MAX_PLAYERS];
  123. new Text: jLinha1[ MAX_PLAYERS ];
  124. new Text: jLinha2[ MAX_PLAYERS ];
  125. new Text: jLinha3[ MAX_PLAYERS ];
  126. new Text: jLinha4[ MAX_PLAYERS ];          
  127. new Text: jBox[ MAX_PLAYERS ];
  128. new Text: jTitulo[MAX_PLAYERS];
  129.  
  130. //Outras variáveis
  131. new Float: X, Float: Y, Float: Z, Float: Angulo;
  132. new Jogador[ MAX_PLAYER_NAME ];
  133. new sStr11[ 128 ];
  134. new sStr10[ 128 ];
  135. new sStr9[ 128 ];
  136. new sStr8[ 128 ];
  137. new sStr7[ 128 ];
  138. new sStr6[ 128 ];
  139. new sStr5[ 128 ];
  140. new sStr4[ 128 ];
  141. new sStr3[ 128 ];
  142. new sStr2[ 128 ];
  143. new pIP[ 16 ];
  144. new Float:jVida;
  145.  
  146. //Forward
  147. forward PlayerSpawn( playerid, targetid );
  148.  
  149. //Calbacks
  150. public OnFilterScriptInit()
  151. {
  152.    print( "Sistema criado por: The Knight" );  
  153.    return true;  
  154. }
  155.  
  156. public OnPlayerConnect( playerid )
  157. {
  158.     //Box Informacoes do Jogador
  159.     jTitulo[ playerid ] = TextDrawCreate( 478.000000, 200.000000, "~w~ Informacoes do Jogador:" );    
  160.     TextDrawBackgroundColor( jTitulo[ playerid ], 0x000000f );    
  161.     TextDrawSetProportional( jTitulo[ playerid ], 1 );
  162.     TextDrawLetterSize( jTitulo[ playerid ], 0.399999, 1.400000 );    
  163.     TextDrawSetOutline( jTitulo[ playerid ], 1 );
  164.     TextDrawAlignment( jTitulo[ playerid ], 0 );
  165.     TextDrawSetShadow( jTitulo[ playerid ], 1 );    
  166.     TextDrawColor( jTitulo[ playerid ], 0xFFF000AA );
  167.     TextDrawFont( jTitulo[ playerid ], 0 );
  168.  
  169.     jBox[ playerid ] = TextDrawCreate( 612.000000, 220.000000, "C" ); //Center
  170.     TextDrawUseBox( jBox[ playerid ], 1 );
  171.     TextDrawBoxColor( jBox[ playerid ], 0x00000033 );
  172.     TextDrawTextSize( jBox[ playerid ], 454.000000, 9.000000 );
  173.     TextDrawAlignment( jBox[ playerid ], 0 );
  174.     TextDrawBackgroundColor( jBox[ playerid ], 0x000000ff );
  175.     TextDrawFont( jBox[ playerid ], 3 );
  176.     TextDrawLetterSize( jBox[ playerid ], -0.000000, 8.700001 );
  177.     TextDrawColor( jBox[ playerid ], 0xffffffff );
  178.     TextDrawSetOutline( jBox[ playerid ], 1 );
  179.     TextDrawSetProportional( jBox[ playerid ], 1 );
  180.     TextDrawSetShadow( jBox[ playerid ], 1 );  
  181.  
  182.     jLinha1[ playerid ] = TextDrawCreate( 609.000000, 224.000000, "L" ); //Acima
  183.     TextDrawUseBox( jLinha1[ playerid ], 1 );
  184.     TextDrawBoxColor( jLinha1[ playerid ], 0xffffff33 );
  185.     TextDrawTextSize(jLinha1[ playerid ], 457.000000, -1.000000 );
  186.     TextDrawAlignment( jLinha1[ playerid ], 0 );
  187.     TextDrawBackgroundColor( jLinha1[ playerid ], 0x000000ff );
  188.     TextDrawFont( jLinha1[ playerid ], 3 );
  189.     TextDrawLetterSize( jLinha1[ playerid ], -0.000000, -0.400000 );
  190.     TextDrawColor( jLinha1[ playerid ], 0xFFF000AA );
  191.     TextDrawSetOutline( jLinha1[ playerid ], 1 );
  192.     TextDrawSetProportional( jLinha1[ playerid ], 1 );
  193.     TextDrawSetShadow( jLinha1[ playerid ], 1 );
  194.  
  195.     jLinha2[ playerid ] = TextDrawCreate( 609.000000, 299.000000, "L" ); //Abaixo
  196.     TextDrawUseBox( jLinha2[ playerid ], 1 );
  197.     TextDrawBoxColor( jLinha2[ playerid ], 0xffffff33 );
  198.     TextDrawTextSize( jLinha2[ playerid ], 457.000000, -9.000000 );
  199.     TextDrawBackgroundColor( jLinha2[ playerid ], 0x000000ff );
  200.     TextDrawFont( jLinha2[ playerid ], 3 );
  201.     TextDrawLetterSize( jLinha2[ playerid ], -0.000000, -0.400000 );
  202.     TextDrawColor( jLinha2[ playerid ], 0xFFF000AA );
  203.     TextDrawSetOutline( jLinha2[ playerid ], 1 );
  204.     TextDrawSetProportional( jLinha2[ playerid ], 1 );
  205.     TextDrawSetShadow( jLinha2[ playerid ], 1 );
  206.    
  207.    
  208.     jLinha3[ playerid ] = TextDrawCreate( 466.000000, 226.000000, "T" ); //Esquerda  
  209.     TextDrawUseBox( jLinha3[ playerid ], 1 );
  210.     TextDrawBoxColor( jLinha3[ playerid ], 0xffffff33 );
  211.     TextDrawTextSize( jLinha3[ playerid ], 457.000000,0.000000 );
  212.     TextDrawAlignment( jLinha3[ playerid ], 0 );
  213.     TextDrawBackgroundColor( jLinha3[ playerid ], 0x000000ff );
  214.     TextDrawFont( jLinha3[ playerid ], 3 );
  215.     TextDrawLetterSize( jLinha3[ playerid ], -0.000000, 7.499998 );
  216.     TextDrawColor( jLinha3[ playerid ], 0xFFF000AA );
  217.     TextDrawSetOutline( jLinha3[ playerid ], 1 );
  218.     TextDrawSetProportional( jLinha3[ playerid ], 1 );
  219.     TextDrawSetShadow( jLinha3[ playerid ], 1 );
  220.    
  221.     jLinha4[ playerid ] = TextDrawCreate( 607.000000, 226.000000, "T" ); //Direita
  222.     TextDrawUseBox( jLinha4[ playerid ], 1 );
  223.     TextDrawBoxColor( jLinha4[ playerid ], 0xffffff33 );
  224.     TextDrawTextSize( jLinha4[ playerid ], 603.000000, -6.000000 );
  225.     TextDrawAlignment( jLinha4[ playerid ], 0 );
  226.     TextDrawBackgroundColor( jLinha4[ playerid ], 0x000000ff );
  227.     TextDrawFont( jLinha4[ playerid ], 3 );
  228.     TextDrawLetterSize( jLinha4[ playerid ], -0.000000, 7.499999 );
  229.     TextDrawColor( jLinha4[ playerid ], 0xFFF000AA );
  230.     TextDrawSetOutline( jLinha4[ playerid ], 1 );
  231.     TextDrawSetProportional( jLinha4[ playerid ], 1 );
  232.     TextDrawSetShadow( jLinha4[ playerid ], 1 );    
  233.                                                
  234.     //Box Posicoes do jogador
  235.     pTitulo[ playerid ] = TextDrawCreate( 482.000000,320.000000, "~w~ Posicao do Jogador:" );
  236.     TextDrawAlignment( pTitulo[ playerid ], 0 );
  237.     TextDrawBackgroundColor( pTitulo[ playerid ], 0x000000ff );
  238.     TextDrawFont( pTitulo[ playerid ], 0 );
  239.     TextDrawLetterSize( pTitulo[ playerid ], 0.399999, 1.400000 );
  240.     TextDrawColor( pTitulo[ playerid ], 0xFFF000AA );
  241.     TextDrawSetOutline( pTitulo[ playerid ], 1 );
  242.     TextDrawSetProportional( pTitulo[ playerid ], 1 );
  243.     TextDrawSetShadow( pTitulo[ playerid ], 1 );
  244.  
  245.     pBox[playerid] = TextDrawCreate( 612.000000, 338.000000, "C" );
  246.     TextDrawUseBox( pBox[ playerid ],1 );
  247.     TextDrawBoxColor( pBox[ playerid ], 0x00000033 );
  248.     TextDrawTextSize( pBox[ playerid ], 454.000000, 9.000000 );
  249.     TextDrawAlignment( pBox[ playerid ], 0 );
  250.     TextDrawBackgroundColor( pBox[ playerid ], 0x000000ff );
  251.     TextDrawFont( pBox[ playerid ], 3 );
  252.     TextDrawLetterSize( pBox[ playerid ], -0.000000, 8.700001 );
  253.     TextDrawColor( pBox[ playerid ], 0xffffffff );
  254.     TextDrawSetOutline( pBox[ playerid ], 1 );
  255.     TextDrawSetProportional( pBox[ playerid ], 1 );
  256.     TextDrawSetShadow( pBox[ playerid ], 1 );  
  257.  
  258.     pLinha1[ playerid ] = TextDrawCreate( 609.000000,341.000000, "L" );
  259.     TextDrawUseBox( pLinha1[ playerid ], 1 );
  260.     TextDrawBoxColor( pLinha1[ playerid ], 0xffffff33 );
  261.     TextDrawTextSize( pLinha1[ playerid ], 457.000000, -1.00000 );
  262.     TextDrawAlignment( pLinha1[ playerid ], 0);
  263.     TextDrawBackgroundColor( pLinha1[ playerid ], 0x000000ff );
  264.     TextDrawFont( pLinha1[ playerid ], 3);
  265.     TextDrawLetterSize( pLinha1[ playerid ], -0.000000, -0.400000 );
  266.     TextDrawColor( pLinha1[ playerid ], 0xFFF000AA );
  267.     TextDrawSetOutline( pLinha1[ playerid ], 1 );
  268.     TextDrawSetProportional( pLinha1[ playerid], 1 );
  269.     TextDrawSetShadow( pLinha1[ playerid ], 1 );
  270.  
  271.     pLinha2[ playerid ] = TextDrawCreate( 609.000000,416.000000, "L" );
  272.     TextDrawUseBox( pLinha2[ playerid ], 1 );
  273.     TextDrawBoxColor( pLinha2[ playerid ], 0xffffff33 );
  274.     TextDrawTextSize( pLinha2[ playerid ], 457.000000, -9.000000 );
  275.     TextDrawBackgroundColor( pLinha2[ playerid ], 0x000000ff );
  276.     TextDrawFont( pLinha2[ playerid ], 3 );
  277.     TextDrawLetterSize( pLinha2[ playerid ], -0.000000, -0.400000 );
  278.     TextDrawColor( pLinha2[ playerid ], 0xffffffff );
  279.     TextDrawSetOutline( pLinha2[ playerid ], 1 );
  280.     TextDrawSetProportional( pLinha2[ playerid ], 1 );
  281.     TextDrawSetShadow( pLinha2[ playerid ], 1 );
  282.    
  283.    
  284.     pLinha3[ playerid ] = TextDrawCreate( 466.000000,343.000000, "T" ); //365 340
  285.     TextDrawUseBox( pLinha3[ playerid ],1 );
  286.     TextDrawBoxColor( pLinha3[ playerid ],0xffffff33 );
  287.     TextDrawTextSize( pLinha3[ playerid ], 457.000000, 0.000000 );
  288.     TextDrawAlignment( pLinha3[ playerid ], 0 );
  289.     TextDrawBackgroundColor( pLinha3[ playerid ], 0x000000ff );
  290.     TextDrawFont( pLinha3[ playerid ], 3 );
  291.     TextDrawLetterSize( pLinha3[ playerid ], -0.000000,7.499998 );
  292.     TextDrawColor( pLinha3[ playerid ], 0xFFF000AA );
  293.     TextDrawSetOutline( pLinha3[ playerid ], 1 );
  294.     TextDrawSetProportional( pLinha3[ playerid ], 1 );
  295.     TextDrawSetShadow( pLinha3[ playerid ], 1 );
  296.    
  297.     pLinha4[playerid] = TextDrawCreate( 607.000000,343.000000, "T" );
  298.     TextDrawUseBox( pLinha4[ playerid ], 1 );
  299.     TextDrawBoxColor( pLinha4[ playerid ], 0xffffff33 );
  300.     TextDrawTextSize( pLinha4[ playerid ], 603.000000, -6.000000 );
  301.     TextDrawAlignment( pLinha4[ playerid ], 0);
  302.     TextDrawBackgroundColor( pLinha4[ playerid ], 0x000000ff );
  303.     TextDrawFont( pLinha4[ playerid ], 3 );
  304.     TextDrawLetterSize( pLinha4[ playerid ], -0.000000, 7.499999 );
  305.     TextDrawColor( pLinha4[ playerid ], 0xFFF000AA );
  306.     TextDrawSetOutline( pLinha4[ playerid ], 1 );
  307.     TextDrawSetProportional( pLinha4[ playerid], 1 );
  308.     TextDrawSetShadow( pLinha4[ playerid ], 1 );
  309.  
  310.     //Barra da saude
  311.     bVida[ playerid ] = TextDrawCreate( BarraVida, "%0.1f" );  
  312.     TextDrawSetProportional( bVida[ playerid ], SetProportionalBV );    
  313.     TextDrawLetterSize( bVida[ playerid ], LetterSizeBV );  
  314.     TextDrawSetOutline( bVida[ playerid ], SetOutlineBV );                
  315.     TextDrawFont( bVida[ playerid ], FontBV );  
  316.  
  317.     //Coordeanda X
  318.     cX[ playerid ] = TextDrawCreate( CordenadaX, "~b~Cordenada X: ~w~%0.2f" );  
  319.     TextDrawSetProportional( cX[ playerid ], SetProportionalX );
  320.     TextDrawLetterSize( cX[ playerid ], LetterSizeX );
  321.     TextDrawSetOutline( cX[ playerid ], SetOutlineX );  
  322.     TextDrawFont( cX[ playerid ], FontX );  
  323.  
  324.     //Coordenada Y
  325.     cY[ playerid ] = TextDrawCreate( CordenadaY, "~b~Cordenada Y: ~w~%0.2f" );  
  326.     TextDrawSetProportional( cY[ playerid ], SetProportionalY );
  327.     TextDrawLetterSize( cY[ playerid ], LetterSizeY );
  328.     TextDrawSetOutline( cY[ playerid ], SetOutlineY );
  329.     TextDrawFont( cY[ playerid ], FontY );    
  330.  
  331.     //Coordeanda Z
  332.     cZ[ playerid ] = TextDrawCreate( CordenadaZ, "~b~Cordenada Z: ~w~%0.2f" );  
  333.     TextDrawSetProportional( cZ[ playerid ], SetProportionalZ );
  334.     TextDrawLetterSize( cZ[ playerid ], LetterSizeZ );
  335.     TextDrawSetOutline( cZ[ playerid ], SetOutlineZ );
  336.     TextDrawFont( cZ[ playerid ], FontZ );  
  337.  
  338.     //Ângulo
  339.     cA[ playerid ] = TextDrawCreate( CordenadaA, "~b~Ângulo: ~w~%0.2f" );  
  340.     TextDrawSetProportional( cA[ playerid ], SetProportionalA );
  341.     TextDrawLetterSize( cA[ playerid ], LetterSizeA );
  342.     TextDrawSetOutline( cA[ playerid ], SetOutlineA );
  343.     TextDrawFont( cA[ playerid ], FontA );    
  344.  
  345.     //Nome X
  346.     Nome[ playerid ] = TextDrawCreate( jNome, "~b~Nome:~w~ %s" );  
  347.     TextDrawSetProportional( Nome[ playerid ], SetProportionalN );
  348.     TextDrawLetterSize( Nome[ playerid ], LetterSizeN );
  349.     TextDrawSetOutline( Nome[ playerid ], SetOutlineN );  
  350.     TextDrawFont( Nome[ playerid ], FontN );  
  351.  
  352.     //ID
  353.     ID[ playerid ] = TextDrawCreate( jID, "~b~Player ID:~w~ %d" );  
  354.     TextDrawSetProportional( ID[ playerid ], SetProportionalID );
  355.     TextDrawLetterSize( ID[ playerid ], LetterSizeID );
  356.     TextDrawSetOutline( ID[ playerid ], SetOutlineID );
  357.     TextDrawFont( ID[ playerid ], FontID );    
  358.  
  359.     //Dinheiro
  360.     Dinheiro[ playerid ] = TextDrawCreate( jDinheiro, "~b~Dinheiro:~w~ %d" );  
  361.     TextDrawSetProportional( Dinheiro[ playerid ], SetProportionalD );
  362.     TextDrawLetterSize( Dinheiro[ playerid ], LetterSizeD );
  363.     TextDrawSetOutline( Dinheiro[ playerid ], SetOutlineD );
  364.     TextDrawFont( Dinheiro[ playerid ], FontD );  
  365.  
  366.     //Ping
  367.     Ping[ playerid ] = TextDrawCreate( jPing, "~b~Ping:~w~ %d" );  
  368.     TextDrawSetProportional( cA[ playerid ], SetProportionalP );
  369.     TextDrawLetterSize( Ping[ playerid ], LetterSizeP );
  370.     TextDrawSetOutline( Ping[ playerid ], SetOutlineP );
  371.     TextDrawFont( Ping[ playerid ], FontP );    
  372.  
  373.     //IP
  374.     IP[ playerid ] = TextDrawCreate( jIP, "~b~IP:~w~ %s" );  
  375.     TextDrawSetProportional( IP[ playerid ], SetProportionalI );
  376.     TextDrawLetterSize( IP[ playerid ], LetterSizeI );
  377.     TextDrawSetOutline( IP[ playerid ], SetOutlineI );
  378.     TextDrawFont( IP[ playerid ], FontI );
  379.     return true;
  380. }
  381.  
  382. public PlayerSpawn( playerid )
  383. {
  384.    GetPlayerName( playerid, Jogador, sizeof( Jogador ) );
  385.    GetPlayerHealth( playerid, jVida );
  386.    GetPlayerPos( playerid, X, Y, Z );  
  387.    GetPlayerFacingAngle( playerid, Angulo);        
  388.    GetPlayerIp( playerid, pIP, sizeof( pIP ) );
  389.    format( sStr11, sizeof( sStr11 ), "~b~Nome:~w~ %s", Jogador );
  390.    format( sStr10, sizeof( sStr10 ), "~b~Player ID:~w~ %d", playerid );
  391.    format( sStr9, sizeof( sStr9 ), "~b~Dinheiro:~w~ %d", GetPlayerMoney( playerid ) );
  392.    format( sStr8, sizeof( sStr8 ), "~b~Ping:~w~ %d", GetPlayerPing( playerid ) );  
  393.    format( sStr7, sizeof( sStr7 ), "~b~IP:~w~ %s", pIP );
  394.    format( sStr6, sizeof( sStr6 ), "%0.1f", jVida );    
  395.    format( sStr5, sizeof( sStr5 ), "~b~Cordenada X: ~w~%0.2f", X );
  396.    format( sStr4, sizeof( sStr4 ), "~b~Cordenada Y: ~w~%0.2f", Y );
  397.    format( sStr3, sizeof( sStr3 ), "~b~Cordenada Z: ~w~%0.2f", Z );
  398.    format( sStr2, sizeof( sStr2 ), "~b~Angulo: ~w~%0.2f", Angulo );      
  399.    TextDrawSetString( Nome[ playerid ], sStr11 );
  400.    TextDrawSetString( ID[ playerid ], sStr10 );
  401.    TextDrawSetString( Dinheiro[ playerid ], sStr9 );
  402.    TextDrawSetString( Ping[ playerid ], sStr8 );  
  403.    TextDrawSetString( IP[ playerid ], sStr7 );
  404.    TextDrawSetString( bVida[ playerid ], sStr6 );
  405.    TextDrawSetString( cX[ playerid ], sStr5 );
  406.    TextDrawSetString( cY[ playerid ], sStr4 );
  407.    TextDrawSetString( cZ[ playerid ], sStr3 );
  408.    TextDrawSetString( cA[ playerid ], sStr2 );                          
  409.    return true;
  410. }
  411.  
  412. public OnPlayerSpawn( playerid )
  413. {
  414.    SetTimer("PlayerSpawn", 250, true);    
  415.    TextDrawShowForPlayer( playerid, bVida[ playerid ] );  
  416.    TextDrawShowForPlayer( playerid, cX[ playerid ] );  
  417.    TextDrawShowForPlayer( playerid, cY[ playerid ] );  
  418.    TextDrawShowForPlayer( playerid, cZ[ playerid ] );  
  419.    TextDrawShowForPlayer( playerid, cA[ playerid ] );
  420.    TextDrawShowForPlayer( playerid, Nome[ playerid ] );  
  421.    TextDrawShowForPlayer( playerid, ID[ playerid ] );  
  422.    TextDrawShowForPlayer( playerid, Dinheiro[ playerid ] );  
  423.    TextDrawShowForPlayer( playerid, Ping[ playerid ] );  
  424.    TextDrawShowForPlayer( playerid, IP[ playerid ] );
  425.    TextDrawShowForPlayer( playerid, pLinha1[ playerid ] );
  426.    TextDrawShowForPlayer( playerid, pLinha2[ playerid ] );
  427.    TextDrawShowForPlayer( playerid, pLinha3[ playerid ] );
  428.    TextDrawShowForPlayer( playerid, pLinha4[ playerid ] );
  429.    TextDrawShowForPlayer( playerid, pBox[ playerid ] );
  430.    TextDrawShowForPlayer( playerid, pTitulo[ playerid ] );
  431.    TextDrawShowForPlayer( playerid, jLinha1[ playerid ] );
  432.    TextDrawShowForPlayer( playerid, jLinha2[ playerid ] );
  433.    TextDrawShowForPlayer( playerid, jLinha3[ playerid ] );
  434.    TextDrawShowForPlayer( playerid, jLinha4[ playerid ] );
  435.    TextDrawShowForPlayer( playerid, jBox[ playerid ] );
  436.    TextDrawShowForPlayer( playerid, jTitulo[ playerid ] );    
  437.    return true;  
  438. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement