SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 01/11/2016, 04:43 AM   #31
NealPeteros
Gangsta
 
NealPeteros's Avatar
 
Join Date: Dec 2015
Location: GetPlayerCountry(playerid);
Posts: 654
Reputation: 51
Default Re: ZNPC: Zombified Non-Player Characters [v1.0] by Weponz

Quote:
Originally Posted by Naruto_Emilio View Post
zombies spawn underground and only roams there, this should be fixed.
It's not the filterscript's error. It may be your MapAndreas. Try updating it and in your server.cfg, add MapAndreas in the last slot of your plugins.
NealPeteros is offline   Reply With Quote
Old 03/11/2016, 08:50 PM   #32
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re: ZNPC: Zombified Non-Player Characters [v1.0] by Weponz

Quote:
Originally Posted by NealPeteros View Post
It's not the filterscript's error. It may be your MapAndreas. Try updating it and in your server.cfg, add MapAndreas in the last slot of your plugins.
adding my mapandras in the last slot of my plugins fixed it thanks.
Naruto_Emilio is offline   Reply With Quote
Old 03/12/2016, 07:03 PM   #33
PrettyDiamond
Big Clucker
 
Join Date: Jun 2015
Location: Germany
Posts: 53
Reputation: 5
Default Re: ZNPC: Zombified Non-Player Characters [v1.0] by Weponz

Anyone can Help me, maybe? I try so long time to get a few zombies, but nothing works for me!

Quote:
[20:43:02] [debug] Server crashed while executing zombie2.amx
[20:43:02] [debug] AMX backtrace:
[20:43:02] [debug] #0 native RNPC_FinishBuild () from RNPC.so
[20:43:02] [debug] #1 000005fc in ?? (0, -992755459, 1149966876, 1099739116, 985963430, 1) from zombie2.amx
[20:43:02] [debug] #2 000046c4 in public OnZombieRoam () from zombie2.amx
[20:43:02] [debug] Native backtrace:
[20:43:02] [debug] #0 b73db9f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[20:43:02] [debug] #1 b73d4a62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[20:43:02] [debug] #2 b73d5764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[20:43:02] [debug] #3 b73d76b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[20:43:02] [debug] #4 b73db31d in ?? () from plugins/crashdetect.so
[20:43:02] [debug] #5 b7742d08 in __kernel_rt_sigreturn () from linux-gate.so.1
[20:43:02] [debug] #6 b7467ec7 in fwrite () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[20:43:02] [debug] #7 b6a5b07e in _ZN15OnFootRecording11writeToFileEPc () from plugins/RNPC.so
[20:43:02] [debug] #8 b6a5da68 in _ZN4RNPC8EndBuildEi () from plugins/RNPC.so
[20:43:02] [debug] #9 b6a5856a in ?? () from plugins/RNPC.so
[20:43:02] [debug] #10 080950e4 in ?? () from ./samp03svr
[20:43:02] [debug] #11 b73d64d3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[20:43:02] [debug] #12 0000000e in ?? () from *oHo| | | | | | Tp
Quote:
public OnZombieRoam()
{
for(new npcid = 0; npcid < MAX_ZOMBIES; npcid++)
{
if(IsPlayerNPC(npcid))
{
if(GetRNPCHealth(npcid) > 0)
{
new victim = GetZombieVictim(npcid), Float, Float:y, Float:z;
GetPlayerPos(npcid, x, y, z);
if(victim == INVALID_PLAYER_ID)
{
new pos = random(4);
if(pos == 0) { x = x + 100.0; }
else if(pos == 1) { x = x - 100.0; }
else if(pos == 2) { y = y + 100.0; }
else if(pos == 3) { y = y - 100.0; }

GetZombieVictimID[npcid] = INVALID_PLAYER_ID;

RNPC_SetKeys(0);

MoveRNPC(npcid, x, y, z, RNPC_SPEED_WALK, 1);
}
}
}
}
return 1;
}
__________________
PrettyDiamond is offline   Reply With Quote
Old 23/12/2017, 02:51 AM   #34
Weponz
Big Clucker
 
Weponz's Avatar
 
Join Date: Sep 2013
Location: Sydney, Australia
Posts: 149
Reputation: 47
Default Re: ZNPC: Zombified Non-Player Characters [v1.0] by Weponz

Main post updated with youtube video example (demo)
__________________
(Click to Play)

Weponz is offline   Reply With Quote
Old 23/12/2017, 11:09 PM   #35
Weponz
Big Clucker
 
Weponz's Avatar
 
Join Date: Sep 2013
Location: Sydney, Australia
Posts: 149
Reputation: 47
Default Re: ZNPC: Zombified Non-Player Characters [v1.0] by Weponz

@Daniielk

Thank you.
__________________
(Click to Play)

Weponz is offline   Reply With Quote
Old 24/12/2017, 11:19 PM   #36
Weponz
Big Clucker
 
Weponz's Avatar
 
Join Date: Sep 2013
Location: Sydney, Australia
Posts: 149
Reputation: 47
Default Re: ZNPC: Zombified Non-Player Characters [v1.0] by Weponz

It uses RNPC.
__________________
(Click to Play)

Weponz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] Weponz Battleship Warzone <Weponz> Maps 6 12/06/2011 08:47 PM
[Map] Weponz Drift <Weponz> Maps 7 09/11/2010 02:37 PM
Player name lenght > 16 characters Dujma Help Archive 5 12/03/2009 10:47 AM


All times are GMT. The time now is 02:11 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.