В чем может быть трабл ?
Код:
!sc2F::
if(isInChat())
return
Ids := NearPlayerInCar(90)
CarName := getTargetVehicleModelNameById(ids)
CarID := getTargetVehicleModelIdById(ids)
If (Ids <= 0)
{
addChatMessage("{00FF00}[HELPER]{FFFFFF} - Рядом с вами нет транспорта.")
}
else
{
goto, testcarc
}
testcarc:
if (getTargetVehicleColor2ById(ids) == 0){
CarColor := Black
}
else if (getTargetVehicleColor2ById(ids) == 1){
CarColor := White
}
else if (getTargetVehicleColor2ById(ids) == 2) {
CarColor := Blue
}
else if (getTargetVehicleColor2ById(ids) := 3) {
CarColor := Red
}
else if (getTargetVehicleColor2ById(ids) := 4) {
CarColor := Gray
}
else if (getTargetVehicleColor2ById(ids) := 5) {
CarColor := Violet
}
else if (getTargetVehicleColor2ById(ids) := 6) {
CarColor := Yellow
}
else if (getTargetVehicleColor2ById(ids) := 7) {
CarColor := Gray-Blue
}
else if (getTargetVehicleColor2ById(ids) := 8) {
CarColor := Light Gray
}
else if (getTargetVehicleColor2ById(ids) := 9) {
CarColor := Gray
}
else if (getTargetVehicleColor2ById(ids) := 10) {
CarColor := Gray-Blue
}
else if (getTargetVehicleColor2ById(ids) := 11) {
CarColor := Gray
}
else if (getTargetVehicleColor2ById(ids) := 12) {
CarColor := Gray-Blue
}
goto, test
test:
addChatMessage("{00FF00}[HELPER]{FFFFFF} - Ближайший к вам транспорт: " CarColor " " CarName " [" CarID "]")
return
Написать свою функцию. Чит Енджин в помощь
dwSAMP + 0x12D8F8
* dwSAMP - базовый адрес модуля samp.dll
ReadProcessMemory - Если ты EXE, в противном случае можно по другому.