 |
|

09.05.2013, 22:42
|
|
Участник форума
Регистрация: 29.04.2013
Сообщений: 141
С нами:
6861401
Репутация:
0
|
|
Здравствуйте уважаемые пользователи сайта BlastHack.Net вот решил написать лёгкую функцию как у M_G Project и вот что получилось.
Код:
Код:
void cheat_handle_hudinformacion ()
{
traceLastFunc( "cheat_handle_hudinformacion()" );
if ( KEY_PRESSED(set.key_hudinformacion) )
{
cheat_state->_generic.hudinformacion ^= 1;
}
if( cheat_state->_generic.hudinformacion == 1 )
{
uint32_t samp_info = ( uint32_t ) g_SAMP;
uint32_t func = g_dwSAMP_Addr + SAMP_FUNCUPDATESCOREBOARDDATA;
D3DCOLORcolor = D3DCOLOR_ARGB( 0xFF, 0xFF, 0x00, 0x00 );
floaty = 0.0f;
( y ) += 400.0f;
charbuf[512];
if ( cheat_state->state == CHEAT_STATE_VEHICLE )
{
intamount_players = getPlayerCount();
pD3DFontFixed->PrintShadow( 350.0f, y, color, "Informacion of Car" );
// Nick
color = D3DCOLOR_ARGB( 0xFF, 0x99, 0x99, 0x99 );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
sprintf( buf, "Nick: %s", getPlayerName(g_Players->sLocalPlayerID) );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// id
sprintf( buf, "ID: %u", g_Players->sLocalPlayerID );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Ping
sprintf( buf, "Ping: %u", g_Players->iLocalPlayerPing );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Level
sprintf( buf, "Level: %u", g_Players->iLocalPlayerScore );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Online Players
sprintf( buf, "Connected Players: %d", amount_players );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Position Cars
sprintf( buf, "Position Car: %0.2f %0.2f %0.2f",
g_Players->pLocalPlayer->inCarData.fPosition[0],
g_Players->pLocalPlayer->inCarData.fPosition[1],
g_Players->pLocalPlayer->inCarData.fPosition[2] );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Health Car
sprintf( buf, "Health Car: %0.2f",
g_Players->pLocalPlayer->inCarData.fVehicleHealth );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
}
else if ( cheat_state->state == CHEAT_STATE_ACTOR )
{
intamount_players = getPlayerCount();
pD3DFontFixed->PrintShadow( 350.0f, y, color, "Informacion of Player" );
// Nick
color = D3DCOLOR_ARGB( 0xFF, 0x99, 0x99, 0x99 );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
sprintf( buf, "Nick: %s", getPlayerName(g_Players->sLocalPlayerID) );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// id
sprintf( buf, "ID: %u", g_Players->sLocalPlayerID );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Ping
sprintf( buf, "Ping: %u", g_Players->iLocalPlayerPing );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Online Players
sprintf( buf, "Connected Players: %d", amount_players );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Level
sprintf( buf, "Level: %u", g_Players->iLocalPlayerScore );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Armor
sprintf( buf, "Armor: %u", g_Players->pLocalPlayer->onFootData.byteArmor );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Health
sprintf( buf, "Health: %u", g_Players->pLocalPlayer->onFootData.byteHealth );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Position
sprintf( buf, "Position: %0.2f %0.2f %0.2f",
g_Players->pLocalPlayer->onFootData.fPosition[0], g_Players->pLocalPlayer->onFootData.fPosition[1],
g_Players->pLocalPlayer->onFootData.fPosition[2] );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
__asm mov ecx, samp_info
__asm call func
}
}
}
By Norma_Cheater For BlastHack.Net
|
|
|

09.05.2013, 23:03
|
|
Постоянный
Регистрация: 19.03.2013
Сообщений: 586
С нами:
6920791
Репутация:
113
|
|
Опередил меня только хотел написать это.
|
|
|

10.05.2013, 01:10
|
|
Участник форума
Регистрация: 19.03.2013
Сообщений: 188
С нами:
6921707
Репутация:
0
|
|
теперь мой дно-соб будет процветать, спасибо вам обоим :*
|
|
|

10.05.2013, 08:47
|
|
Участник форума
Регистрация: 19.03.2013
Сообщений: 144
С нами:
6921041
Репутация:
0
|
|
1>samp.cpp(484): error C2065: 'D3DCOLORcolor' : undeclared identifier
1>samp.cpp(485): error C2065: 'floaty' : undeclared identifier
1>samp.cpp(486): error C2065: 'y' : undeclared identifier
1>samp.cpp(487): error C2065: 'charbuf' : undeclared identifier
1>samp.cpp(491): error C2065: 'intamount_players' : undeclared identifier
1>samp.cpp(492): error C2065: 'y' : undeclared identifier
1>samp.cpp(492): error C2065: 'color' : undeclared identifier
1>samp.cpp(494): error C2065: 'color' : undeclared identifier
1>samp.cpp(495): error C2065: 'y' : undeclared identifier
1>samp.cpp(496): error C2065: 'buf' : undeclared identifier
1>samp.cpp(497): error C2065: 'y' : undeclared identifier
1>samp.cpp(497): error C2065: 'color' : undeclared identifier
1>samp.cpp(497): error C2065: 'buf' : undeclared identifier
1>samp.cpp(498): error C2065: 'y' : undeclared identifier
1>samp.cpp(500): error C2065: 'buf' : undeclared identifier
1>samp.cpp(501): error C2065: 'y' : undeclared identifier
1>samp.cpp(501): error C2065: 'color' : undeclared identifier
1>samp.cpp(501): error C2065: 'buf' : undeclared identifier
1>samp.cpp(502): error C2065: 'y' : undeclared identifier
1>samp.cpp(504): error C2065: 'buf' : undeclared identifier
1>samp.cpp(505): error C2065: 'y' : undeclared identifier
1>samp.cpp(505): error C2065: 'color' : undeclared identifier
1>samp.cpp(505): error C2065: 'buf' : undeclared identifier
1>samp.cpp(506): error C2065: 'y' : undeclared identifier
1>samp.cpp(508): error C2065: 'buf' : undeclared identifier
1>samp.cpp(509): error C2065: 'y' : undeclared identifier
1>samp.cpp(509): error C2065: 'color' : undeclared identifier
1>samp.cpp(509): error C2065: 'buf' : undeclared identifier
1>samp.cpp(510): error C2065: 'y' : undeclared identifier
1>samp.cpp(512): error C2065: 'buf' : undeclared identifier
1>samp.cpp(512): error C2065: 'amount_players' : undeclared identifier
1>samp.cpp(513): error C2065: 'y' : undeclared identifier
1>samp.cpp(513): error C2065: 'color' : undeclared identifier
1>samp.cpp(513): error C2065: 'buf' : undeclared identifier
1>samp.cpp(514): error C2065: 'y' : undeclared identifier
1>samp.cpp(516): error C2065: 'buf' : undeclared identifier
1>samp.cpp(520): error C2065: 'y' : undeclared identifier
1>samp.cpp(520): error C2065: 'color' : undeclared identifier
1>samp.cpp(520): error C2065: 'buf' : undeclared identifier
1>samp.cpp(521): error C2065: 'y' : undeclared identifier
1>samp.cpp(523): error C2065: 'buf' : undeclared identifier
1>samp.cpp(525): error C2065: 'y' : undeclared identifier
1>samp.cpp(525): error C2065: 'color' : undeclared identifier
1>samp.cpp(525): error C2065: 'buf' : undeclared identifier
1>samp.cpp(526): error C2065: 'y' : undeclared identifier
1>samp.cpp(530): error C2065: 'intamount_players' : undeclared identifier
1>samp.cpp(531): error C2065: 'y' : undeclared identifier
1>samp.cpp(531): error C2065: 'color' : undeclared identifier
1>samp.cpp(533): error C2065: 'color' : undeclared identifier
1>samp.cpp(534): error C2065: 'y' : undeclared identifier
1>samp.cpp(535): error C2065: 'buf' : undeclared identifier
1>samp.cpp(536): error C2065: 'y' : undeclared identifier
1>samp.cpp(536): error C2065: 'color' : undeclared identifier
1>samp.cpp(536): error C2065: 'buf' : undeclared identifier
1>samp.cpp(537): error C2065: 'y' : undeclared identifier
1>samp.cpp(539): error C2065: 'buf' : undeclared identifier
1>samp.cpp(540): error C2065: 'y' : undeclared identifier
1>samp.cpp(540): error C2065: 'color' : undeclared identifier
1>samp.cpp(540): error C2065: 'buf' : undeclared identifier
1>samp.cpp(541): error C2065: 'y' : undeclared identifier
1>samp.cpp(543): error C2065: 'buf' : undeclared identifier
1>samp.cpp(544): error C2065: 'y' : undeclared identifier
1>samp.cpp(544): error C2065: 'color' : undeclared identifier
1>samp.cpp(544): error C2065: 'buf' : undeclared identifier
1>samp.cpp(545): error C2065: 'y' : undeclared identifier
1>samp.cpp(547): error C2065: 'buf' : undeclared identifier
1>samp.cpp(547): error C2065: 'amount_players' : undeclared identifier
1>samp.cpp(548): error C2065: 'y' : undeclared identifier
1>samp.cpp(548): error C2065: 'color' : undeclared identifier
1>samp.cpp(548): error C2065: 'buf' : undeclared identifier
1>samp.cpp(549): error C2065: 'y' : undeclared identifier
1>samp.cpp(551): error C2065: 'buf' : undeclared identifier
1>samp.cpp(552): error C2065: 'y' : undeclared identifier
1>samp.cpp(552): error C2065: 'color' : undeclared identifier
1>samp.cpp(552): error C2065: 'buf' : undeclared identifier
1>samp.cpp(553): error C2065: 'y' : undeclared identifier
1>samp.cpp(555): error C2065: 'buf' : undeclared identifier
1>samp.cpp(556): error C2065: 'y' : undeclared identifier
1>samp.cpp(556): error C2065: 'color' : undeclared identifier
1>samp.cpp(556): error C2065: 'buf' : undeclared identifier
1>samp.cpp(557): error C2065: 'y' : undeclared identifier
1>samp.cpp(559): error C2065: 'buf' : undeclared identifier
1>samp.cpp(560): error C2065: 'y' : undeclared identifier
1>samp.cpp(560): error C2065: 'color' : undeclared identifier
1>samp.cpp(560): error C2065: 'buf' : undeclared identifier
1>samp.cpp(561): error C2065: 'y' : undeclared identifier
1>samp.cpp(563): error C2065: 'buf' : undeclared identifier
1>samp.cpp(566): error C2065: 'y' : undeclared identifier
1>samp.cpp(566): error C2065: 'color' : undeclared identifier
1>samp.cpp(566): error C2065: 'buf' : undeclared identifier
1>samp.cpp(567): error C2065: 'y' : undeclared identifier
помогите плиз
|
|
|

10.05.2013, 10:28
|
|
Участник форума
Регистрация: 29.04.2013
Сообщений: 141
С нами:
6861401
Репутация:
0
|
|
Это не в samp.cpp а в cheat_generic.cpp, и обьявить в cheat.cpp,cheat.h,cheat_generic.h,ini.h
Jesus xD
|
|
|

10.05.2013, 10:54
|
|
Участник форума
Регистрация: 19.03.2013
Сообщений: 144
С нами:
6921041
Репутация:
0
|
|
Сообщение от Norma_Cheater
Это не в samp.cpp а в cheat_generic.cpp, и обьявить в cheat.cpp,cheat.h,cheat_generic.h,ini.h
Да ок.
Код:
Код:
1>cheat_generic.cpp(1322): error C2065: 'D3DCOLORcolor' : undeclared identifier
1>cheat_generic.cpp(1323): error C2065: 'floaty' : undeclared identifier
1>cheat_generic.cpp(1324): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1325): error C2065: 'charbuf' : undeclared identifier
1>cheat_generic.cpp(1329): error C2065: 'intamount_players' : undeclared identifier
1>cheat_generic.cpp(1330): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1330): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1332): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1333): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1334): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1335): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1335): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1335): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1336): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1338): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1339): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1339): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1339): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1340): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1342): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1343): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1343): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1343): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1344): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1346): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1347): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1347): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1347): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1348): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1350): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1350): error C2065: 'amount_players' : undeclared identifier
1>cheat_generic.cpp(1351): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1351): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1351): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1352): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1354): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1358): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1358): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1358): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1359): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1361): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1363): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1363): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1363): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1364): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1368): error C2065: 'intamount_players' : undeclared identifier
1>cheat_generic.cpp(1369): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1369): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1371): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1372): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1373): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1374): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1374): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1374): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1375): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1377): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1378): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1378): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1378): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1379): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1381): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1382): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1382): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1382): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1383): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1385): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1385): error C2065: 'amount_players' : undeclared identifier
1>cheat_generic.cpp(1386): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1386): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1386): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1387): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1389): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1390): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1390): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1390): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1391): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1393): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1394): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1394): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1394): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1395): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1397): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1398): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1398): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1398): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1399): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1401): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1404): error C2065: 'y' : undeclared identifier
1>cheat_generic.cpp(1404): error C2065: 'color' : undeclared identifier
1>cheat_generic.cpp(1404): error C2065: 'buf' : undeclared identifier
1>cheat_generic.cpp(1405): error C2065: 'y' : undeclared identifier
|
|
|

10.05.2013, 11:22
|
|
Постоянный
Регистрация: 19.03.2013
Сообщений: 586
С нами:
6920791
Репутация:
113
|
|
Сообщение от Norma_Cheater
Это не в samp.cpp а в cheat_generic.cpp, и обьявить в cheat.cpp,cheat.h,cheat_generic.h,ini.h
Jesus xD
Вообще-то это надо сувать в proxyIDirect3DDevice9.cpp
Там ищешь
Код:
Код:
renderSAMP(); // sure why not
renderPlayerTags();
И перед этим ставишь
Код:
Код:
if( cheat_state->_generic.hudinformacion == 1 )
{
uint32_t samp_info = ( uint32_t ) g_SAMP;
uint32_t func = g_dwSAMP_Addr + SAMP_FUNCUPDATESCOREBOARDDATA;
D3DCOLORcolor = D3DCOLOR_ARGB( 0xFF, 0xFF, 0x00, 0x00 );
floaty = 0.0f;
( y ) += 400.0f;
charbuf[512];
if ( cheat_state->state == CHEAT_STATE_VEHICLE )
{
intamount_players = getPlayerCount();
pD3DFontFixed->PrintShadow( 350.0f, y, color, "Informacion of Car" );
// Nick
color = D3DCOLOR_ARGB( 0xFF, 0x99, 0x99, 0x99 );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
sprintf( buf, "Nick: %s", getPlayerName(g_Players->sLocalPlayerID) );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// id
sprintf( buf, "ID: %u", g_Players->sLocalPlayerID );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Ping
sprintf( buf, "Ping: %u", g_Players->iLocalPlayerPing );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Level
sprintf( buf, "Level: %u", g_Players->iLocalPlayerScore );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Online Players
sprintf( buf, "Connected Players: %d", amount_players );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Position Cars
sprintf( buf, "Position Car: %0.2f %0.2f %0.2f",
g_Players->pLocalPlayer->inCarData.fPosition[0],
g_Players->pLocalPlayer->inCarData.fPosition[1],
g_Players->pLocalPlayer->inCarData.fPosition[2] );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Health Car
sprintf( buf, "Health Car: %0.2f",
g_Players->pLocalPlayer->inCarData.fVehicleHealth );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
}
else if ( cheat_state->state == CHEAT_STATE_ACTOR )
{
intamount_players = getPlayerCount();
pD3DFontFixed->PrintShadow( 350.0f, y, color, "Informacion of Player" );
// Nick
color = D3DCOLOR_ARGB( 0xFF, 0x99, 0x99, 0x99 );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
sprintf( buf, "Nick: %s", getPlayerName(g_Players->sLocalPlayerID) );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// id
sprintf( buf, "ID: %u", g_Players->sLocalPlayerID );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Ping
sprintf( buf, "Ping: %u", g_Players->iLocalPlayerPing );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Online Players
sprintf( buf, "Connected Players: %d", amount_players );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Level
sprintf( buf, "Level: %u", g_Players->iLocalPlayerScore );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Armor
sprintf( buf, "Armor: %u", g_Players->pLocalPlayer->onFootData.byteArmor );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Health
sprintf( buf, "Health: %u", g_Players->pLocalPlayer->onFootData.byteHealth );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Position
sprintf( buf, "Position: %0.2f %0.2f %0.2f",
g_Players->pLocalPlayer->onFootData.fPosition[0], g_Players->pLocalPlayer->onFootData.fPosition[1],
g_Players->pLocalPlayer->onFootData.fPosition[2] );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
__asm mov ecx, samp_info
__asm call func
}
}
|
|
|

10.05.2013, 11:32
|
|
Участник форума
Регистрация: 29.04.2013
Сообщений: 141
С нами:
6861401
Репутация:
0
|
|
Сообщение от Jesus
Вообще-то это надо сувать в proxyIDirect3DDevice9.cpp
Там ищешь
Код:
Код:
renderSAMP(); // sure why not
renderPlayerTags();
И перед этим ставишь
Код:
Код:
if( cheat_state->_generic.hudinformacion == 1 )
{
uint32_t samp_info = ( uint32_t ) g_SAMP;
uint32_t func = g_dwSAMP_Addr + SAMP_FUNCUPDATESCOREBOARDDATA;
D3DCOLORcolor = D3DCOLOR_ARGB( 0xFF, 0xFF, 0x00, 0x00 );
floaty = 0.0f;
( y ) += 400.0f;
charbuf[512];
if ( cheat_state->state == CHEAT_STATE_VEHICLE )
{
intamount_players = getPlayerCount();
pD3DFontFixed->PrintShadow( 350.0f, y, color, "Informacion of Car" );
// Nick
color = D3DCOLOR_ARGB( 0xFF, 0x99, 0x99, 0x99 );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
sprintf( buf, "Nick: %s", getPlayerName(g_Players->sLocalPlayerID) );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// id
sprintf( buf, "ID: %u", g_Players->sLocalPlayerID );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Ping
sprintf( buf, "Ping: %u", g_Players->iLocalPlayerPing );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Level
sprintf( buf, "Level: %u", g_Players->iLocalPlayerScore );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Online Players
sprintf( buf, "Connected Players: %d", amount_players );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Position Cars
sprintf( buf, "Position Car: %0.2f %0.2f %0.2f",
g_Players->pLocalPlayer->inCarData.fPosition[0],
g_Players->pLocalPlayer->inCarData.fPosition[1],
g_Players->pLocalPlayer->inCarData.fPosition[2] );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Health Car
sprintf( buf, "Health Car: %0.2f",
g_Players->pLocalPlayer->inCarData.fVehicleHealth );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
}
else if ( cheat_state->state == CHEAT_STATE_ACTOR )
{
intamount_players = getPlayerCount();
pD3DFontFixed->PrintShadow( 350.0f, y, color, "Informacion of Player" );
// Nick
color = D3DCOLOR_ARGB( 0xFF, 0x99, 0x99, 0x99 );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
sprintf( buf, "Nick: %s", getPlayerName(g_Players->sLocalPlayerID) );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// id
sprintf( buf, "ID: %u", g_Players->sLocalPlayerID );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Ping
sprintf( buf, "Ping: %u", g_Players->iLocalPlayerPing );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Online Players
sprintf( buf, "Connected Players: %d", amount_players );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Level
sprintf( buf, "Level: %u", g_Players->iLocalPlayerScore );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Armor
sprintf( buf, "Armor: %u", g_Players->pLocalPlayer->onFootData.byteArmor );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Health
sprintf( buf, "Health: %u", g_Players->pLocalPlayer->onFootData.byteHealth );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
// Position
sprintf( buf, "Position: %0.2f %0.2f %0.2f",
g_Players->pLocalPlayer->onFootData.fPosition[0], g_Players->pLocalPlayer->onFootData.fPosition[1],
g_Players->pLocalPlayer->onFootData.fPosition[2] );
pD3DFontFixed->PrintShadow( 350.0f, y, color, buf );
( y ) += 1.0f + pD3DFontFixed->DrawHeight();
__asm mov ecx, samp_info
__asm call func
}
}
Если ты хочешь что бы автоматом включалась то да, просто я вбил в меню поэтому ..
|
|
|

10.05.2013, 11:45
|
|
Постоянный
Регистрация: 19.03.2013
Сообщений: 586
С нами:
6920791
Репутация:
113
|
|
Сообщение от Norma_Cheater
Если ты хочешь что бы автоматом включалась то да, просто я вбил в меню поэтому ..
вообще-то нет
|
|
|

10.05.2013, 11:45
|
|
Постоянный
Регистрация: 19.03.2013
Сообщений: 586
С нами:
6920791
Репутация:
113
|
|
Сообщение от Jesus
вообще-то нет
В меню надо как раз то включать
|
|
|
|
 |
|
Предыдущая тема
Следующая тема
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|