Hello,
i want to check if the player is spawned and i found this code in an autohotkey script and tried to convert it into c++ but with no success. I hope that someone can explain to me how to convert code such like this. Btw i am new at coding and learning c++.
isPlayerSpawned() {
return...
thank you! is there a solution to avoid shooting at ped behind walls?
//EDIT: It is even shooting if only the green triangle is showing. how can i fix this that it only shoots if i am on the player?
i used this to get the target ped but always when i start the game, it crashes and its because of the address i use
address:
DWORD getTargetPed(void) {
return *(DWORD*)((*(DWORD*)0xB6F3B8) + 0x79C);
}
how do i fix this? need it for a triggerbot
do you have an video tutorial for this? hahaha sorry i am absolutly new at visual studio and c++ and i have no idea how to put in the directories and all of that, but i got installed the sdk under C:\Windows haha
But when do i know to use int, byte, dword, float or what else
for example:
coords are floats but on https://gtamods.com/wiki/Memory_Addresses_(SA) it says that the coords are dwords and i dont know what to choose
I have this code created but have no idea why the numpad1 function to change the health of the player is not working, i tried it on int and float
#pragma comment(lib, "Open-SAMP-API.lib")
#include <iostream>
#include "SAMP_API.h"
#define WIN32_LEAN_AND_MEAN
#include "Windows.h"
#include...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.