SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 07/12/2014, 10:30 PM   #11
PowerPC603
High-roller
 
Join Date: Nov 2010
Location: Belgium
Posts: 1,734
Reputation: 238
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

Lol, infinite loop nicely shown here.

If the npc gets hit by a sniper (weaponid 34), it kills the npc.
Callback FCNPC_OnDeath is called and this callback kills the npc again.
The callback FCNPC_OnDeath is called again, which kills the npc again, over and over again.

Just remove the FCNPC_Kill from that callback and you should be fine.
There is no reason to kill an npc if he's already dead.
__________________
Gamemode: PPC_Trucking
Extras-file (for PPC_Trucking): /delproperty, /evict, /propertyid, /porthouse, /portbus, /properties
------------------------------------------------------------------------------------
PPC-Trucking-V2 (home-hosted, only open on occasion for testing purposes): ppctruckingv2.no-ip.info:7777
Youtube channel: https://www.youtube.com/channel/UC-4...Mpglma8f0Ld-YQ
------------------------------------------------------------------------------------
Filterscripts: PPC_Speedometer - PPC_Housing - PPC_Business
PowerPC603 is offline   Reply With Quote
Old 08/12/2014, 04:39 PM   #12
Supermaxultraswag
Huge Clucker
 
Join Date: Aug 2014
Posts: 225
Reputation: 2
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

Quote:
Originally Posted by PowerPC603 View Post
Lol, infinite loop nicely shown here.

If the npc gets hit by a sniper (weaponid 34), it kills the npc.
Callback FCNPC_OnDeath is called and this callback kills the npc again.
The callback FCNPC_OnDeath is called again, which kills the npc again, over and over again.

Just remove the FCNPC_Kill from that callback and you should be fine.
There is no reason to kill an npc if he's already dead.
Okay, ackslimit fixed, but npc still dont die...



I saw with s 0beit that npc have 0 hp but he still stand and dont appear.


Also, why its starts sending message with no text when i kill npc?
Supermaxultraswag is offline   Reply With Quote
Old 08/12/2014, 07:27 PM   #13
Supermaxultraswag
Huge Clucker
 
Join Date: Aug 2014
Posts: 225
Reputation: 2
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

help please
Supermaxultraswag is offline   Reply With Quote
Old 09/12/2014, 03:45 PM   #14
Supermaxultraswag
Huge Clucker
 
Join Date: Aug 2014
Posts: 225
Reputation: 2
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

anyone? :/
Supermaxultraswag is offline   Reply With Quote
Old 09/12/2014, 05:33 PM   #15
Joe Staff
High-roller
 
Joe Staff's Avatar
 
Join Date: Aug 2007
Posts: 2,567
Reputation: 377
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

If (FCNPC_GetHealth(npcid)<=0)FCNPC_Kill(npcid)
Under sniper shot
__________________
Big bottom girls make this rockin' world go 'round.
Joe Staff is offline   Reply With Quote
Old 12/12/2014, 10:28 AM   #16
Supermaxultraswag
Huge Clucker
 
Join Date: Aug 2014
Posts: 225
Reputation: 2
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

not workin man... how do i make npc fall down and disappear when he's dead?
Supermaxultraswag is offline   Reply With Quote
Old 12/12/2014, 03:49 PM   #17
kaisersouse
High-roller
 
kaisersouse's Avatar
 
Join Date: Jun 2006
Location: Subaru Forester
Posts: 2,791
Reputation: 1011
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

Don't bump before 24 hours have past.

Also...its all about how it looks to the player. When dead, have the NPC execute an animation and then after a couple seconds, teleport them to the middle of the ocean (gives appearance they have died and vanished)
__________________
Life is like a box of cheap-ass no cocoa garbage dollar-store chocolate.
kaisersouse is offline   Reply With Quote
Old 12/12/2014, 05:58 PM   #18
Supermaxultraswag
Huge Clucker
 
Join Date: Aug 2014
Posts: 225
Reputation: 2
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

Quote:
Originally Posted by kaisersouse View Post
Don't bump before 24 hours have past.

Also...its all about how it looks to the player. When dead, have the NPC execute an animation and then after a couple seconds, teleport them to the middle of the ocean (gives appearance they have died and vanished)
How do I make execute animation? This plugin dont have ApplyAnimation function for NPC.
Supermaxultraswag is offline   Reply With Quote
Old 13/12/2014, 05:15 PM   #19
Supermaxultraswag
Huge Clucker
 
Join Date: Aug 2014
Posts: 225
Reputation: 2
Default Re: Warning: client exceeded 'ackslimit' 322.0.0.9:5206 (6882) Limit: 3000/sec

i still need help! How do I make execute animation? This plugin dont have ApplyAnimation function for NPC.
Supermaxultraswag 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
Warning: client exceeded "ackslimit" Youssef214 Scripting Help 1 05/08/2014 07:47 AM
[Ajuda] O que ť isso? - Warning: client exceeded [...] Krusheer PortuguÍs/Portuguese 5 26/06/2014 08:24 PM
Warning: client exceeded 'ackslimit' 110.174.228.223:50520 (1073) Limit: 1000/sec Mriss Server Support 3 18/04/2014 03:03 PM
Warning: client exceeded "messageholelimit" Necip Scripting Help 6 04/03/2014 09:16 PM


All times are GMT. The time now is 08:31 AM.


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