Bot/Npc Error or Bug

Started by PLAYER, Apr 07, 2025, 10:36 AM

Previous topic - Next topic

PLAYER

Hello everyone Today i was trying to add bot in my server So i used Habi npc04rel64 Plugin Then I added The Bot in my server The Bot Sucessfully Joined Server But When I tried to make it Attack Players it Doesn't attacked any player I used This Script
function OnNPCScriptLoad( params )
{
SetTimerEx("Check", 200, 0);
}

function Check()
{
if(GetTarget()!=-1)
return;

for(local i=0;i<100;i++)
{
if(IsPlayerConnected(i)&&IsPlayerStreamedIn(i))
{
if(GetPlayerState(i)==PLAYER_STATE_AIM)
{
if(GetDistanceFromMeToPoint(GetPlayerPos(i))<40)
{
if( GetTarget()== -1 )
ShootPlayer(i);
}
}
}
}
}

Its Working on Blank Server Windows But when I Try to add in it my Real server Linux Its not show any error on Console Just Bot Stand at one Place and Don't shoot
In Blank Server SHooting
but in Linux Server not shooting even with same script and also there is no error on Console

"Feared by many. Matched by none."
✦ Born from the shadows ✦

☯ Silent • Deadly • Untouchable
⫷ Elite ✦ Ghost ✦ Player ⫸

PLAYER

"Feared by many. Matched by none."
✦ Born from the shadows ✦

☯ Silent • Deadly • Untouchable
⫷ Elite ✦ Ghost ✦ Player ⫸

ℛḝξ☂

Are your plugins and starter in correct version?
I may be a slow walker but I am always walking.

PLAYER

"Feared by many. Matched by none."
✦ Born from the shadows ✦

☯ Silent • Deadly • Untouchable
⫷ Elite ✦ Ghost ✦ Player ⫸

PLAYER

anyone know how to fix ?
"Feared by many. Matched by none."
✦ Born from the shadows ✦

☯ Silent • Deadly • Untouchable
⫷ Elite ✦ Ghost ✦ Player ⫸

MEGAMIND

#5
Quote from: PLAYER on Apr 09, 2025, 01:44 PManyone know how to fix ?
use linux binaries from habi's repo