if i could try to get this to work do you think it migh be a working pub???
{void SetCrosshairOnEnemy(BYTE PlayerNumber);
{
PLAYER_DATA oP = GetPlayerData(PlayerNumber);
PLAYER_DATA cP = GetMyPlayerData();
double flatDist = sqrt((EWdif*EWdif)+(NSdif*NSdif)); // Get the level distance between us and the enemy, using pythagoras
if(oP.coordUD == cP.coordUD)
{
BYTE zero4[4] = {0x00,0x00,0x00,0x00};
Poke((void*)cP.lookYa,zero4, 4); // If we are equal height, set our Y-look to 0 (level)
} else if(oP.coordUD > cP.coordUD)
{
UDdif = oP.coordUD - cP.coordUD; // Work out our UDdif
angleB = atan(UDdif/flatDist) * 57.29578; // Same old stuff as before
angleBP = (angleB/360);
newValueb = 0 + (0xFFFFFFFF*angleBP);
newValueb2 = newValueb;
Poke((void*)cP.lookYa, &newValueb2,4);
Please wrap in [ code] and [ /code] (without spaces) and then I will maybe bother to read through it
Edit:
Oh and no because you need the playernumber byte, which judging by how this is leeched, you don't have. Plus you need some other functions I think
i got it from someone here
do you know the number???
i do, but i think you bit off alittle more than you can chew. go for real chams first bro