NPC Timer
#1

I've got a problem. I want to connect al lot of zombies into my server but the most zombies are blocked and could not connect to my server. now I want to set a timer for the zombies but the problem is i don't know how to set the timer.

here's my server_log.txt:

Код HTML:
[18:05:26]   Loading filterscript 'Zombie.amx'...
[18:05:27] [connection] 127.0.0.1:50176 requests connection cookie.
[18:05:27] [connection] 127.0.0.1:50177 requests connection cookie.
[18:05:27] [connection] 127.0.0.1:50178 requests connection cookie.
[18:05:27] [connection] 127.0.0.1:50179 requests connection cookie.
[18:05:27] [connection] 127.0.0.1:50180 requests connection cookie.
[18:05:27] [connection] 127.0.0.1:50182 requests connection cookie.
[18:05:27] [connection] 127.0.0.1:50181 requests connection cookie.
[18:05:28] [connection] 127.0.0.1:50183 requests connection cookie.
[18:05:28] [connection] 127.0.0.1:50213 requests connection cookie.
[18:05:28] [connection] 127.0.0.1:50215 requests connection cookie.
[18:05:28] [connection] 127.0.0.1:50184 requests connection cookie.
[18:05:28] [connection] 127.0.0.1:50189 requests connection cookie.
[18:05:28] [connection] 127.0.0.1:50185 requests connection cookie.
[18:05:29] [connection] 127.0.0.1:50219 requests connection cookie.
[18:05:29] [connection] 127.0.0.1:50220 requests connection cookie.
[18:05:29] [connection] 127.0.0.1:50186 requests connection cookie.
[18:05:29] [connection] 127.0.0.1:50230 requests connection cookie.
[18:05:29] [connection] 127.0.0.1:50188 requests connection cookie.
[18:05:29] [connection] 127.0.0.1:50187 requests connection cookie.
[18:05:29] [connection] 127.0.0.1:50190 requests connection cookie.
[18:05:30] [connection] 127.0.0.1:50191 requests connection cookie.
[18:05:30] [connection] 127.0.0.1:50247 requests connection cookie.
[18:05:30] [connection] 127.0.0.1:50192 requests connection cookie.
[18:05:30] [connection] 127.0.0.1:50193 requests connection cookie.
[18:05:30] [connection] 127.0.0.1:50194 requests connection cookie.
[18:05:30] [connection] 127.0.0.1:50251 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:50197 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:50195 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:50196 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:63161 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:50199 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:50201 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:50198 requests connection cookie.
[18:05:31] [connection] 127.0.0.1:50200 requests connection cookie.
[18:05:32] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:32] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:32] [connection] 127.0.0.1:63175 requests connection cookie.
[18:05:32] [connection] 127.0.0.1:50202 requests connection cookie.
[18:05:32] [connection] 127.0.0.1:50203 requests connection cookie.
[18:05:32] [connection] 127.0.0.1:63182 requests connection cookie.
[18:05:32] [connection] 127.0.0.1:63183 requests connection cookie.
[18:05:32] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:32] [connection] 127.0.0.1:63189 requests connection cookie.
[18:05:32] [connection] 127.0.0.1:63193 requests connection cookie.
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] [connection] 127.0.0.1:50205 requests connection cookie.
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] [connection] 127.0.0.1:63203 requests connection cookie.
[18:05:33] [connection] 127.0.0.1:50204 requests connection cookie.
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:33] [connection] 127.0.0.1:63213 requests connection cookie.
[18:05:33] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] [connection] 127.0.0.1:50206 requests connection cookie.
[18:05:34] [connection] 127.0.0.1:50207 requests connection cookie.
[18:05:34] [connection] 127.0.0.1:50208 requests connection cookie.
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] [connection] 127.0.0.1:50210 requests connection cookie.
[18:05:34] [connection] 127.0.0.1:50212 requests connection cookie.
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] [connection] 127.0.0.1:50209 requests connection cookie.
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:34] [connection] 127.0.0.1:63236 requests connection cookie.
[18:05:34] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] [connection] 127.0.0.1:63244 requests connection cookie.
[18:05:35] [connection] 127.0.0.1:50211 requests connection cookie.
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] [connection] 127.0.0.1:50214 requests connection cookie.
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] [connection] 127.0.0.1:50216 requests connection cookie.
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:35] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] [connection] 127.0.0.1:50217 requests connection cookie.
[18:05:36] [connection] 127.0.0.1:63237 requests connection cookie.
[18:05:36] [connection] 127.0.0.1:63243 requests connection cookie.
[18:05:36] [connection] 127.0.0.1:50218 requests connection cookie.
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] [connection] 127.0.0.1:50221 requests connection cookie.
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] [connection] 127.0.0.1:50223 requests connection cookie.
[18:05:36] [connection] 127.0.0.1:50222 requests connection cookie.
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:36] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] [connection] 127.0.0.1:50225 requests connection cookie.
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] [connection] 127.0.0.1:50226 requests connection cookie.
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] [connection] 127.0.0.1:63302 requests connection cookie.
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:37] [connection] 127.0.0.1:50228 requests connection cookie.
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:38] [connection] 127.0.0.1:50227 requests connection cookie.
[18:05:38] [connection] 127.0.0.1:50231 requests connection cookie.
[18:05:38] [connection] 127.0.0.1:50224 requests connection cookie.
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:38] [connection] 127.0.0.1:50229 requests connection cookie.
[18:05:38] [connection] 127.0.0.1:50232 requests connection cookie.
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:38] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:39] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:39] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:39] [connection] 127.0.0.1:50233 requests connection cookie.
[18:05:39] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:39] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:39] [connection] 127.0.0.1:50235 requests connection cookie.
[18:05:39] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:40] [connection] 127.0.0.1:50234 requests connection cookie.
[18:05:40] [connection] 127.0.0.1:50236 requests connection cookie.
[18:05:40] [connection] 127.0.0.1:50237 requests connection cookie.
[18:05:40] [connection] 127.0.0.1:50239 requests connection cookie.
[18:05:40] [connection] 127.0.0.1:50238 requests connection cookie.
[18:05:40] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:40] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:40] [connection] 127.0.0.1:50241 requests connection cookie.
[18:05:40] [connection] 127.0.0.1:63364 requests connection cookie.
[18:05:40] [connection] 127.0.0.1:50240 requests connection cookie.
[18:05:40] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:40] [connection] 127.0.0.1:63366 requests connection cookie.
[18:05:41] [connection] 127.0.0.1:50242 requests connection cookie.
[18:05:41] [connection] 127.0.0.1:50243 requests connection cookie.
[18:05:41] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:41] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:41] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:42] [connection] 127.0.0.1:50244 requests connection cookie.
[18:05:42] [connection] 127.0.0.1:50246 requests connection cookie.
[18:05:42] [connection] 127.0.0.1:50245 requests connection cookie.
[18:05:42] [connection] 127.0.0.1:50249 requests connection cookie.
[18:05:42] [connection] 127.0.0.1:50252 requests connection cookie.
[18:05:42] [connection] 127.0.0.1:50250 requests connection cookie.
[18:05:42] [connection] 127.0.0.1:50248 requests connection cookie.
[18:05:42] [connection] 127.0.0.1:63140 requests connection cookie.
[18:05:42] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:42] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:42] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:43] [connection] 127.0.0.1:63142 requests connection cookie.
[18:05:43] [connection] 127.0.0.1:63758 requests connection cookie.
[18:05:43] [connection] 127.0.0.1:63141 requests connection cookie.
[18:05:43] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:43] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:44] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:44] [connection] 127.0.0.1:63144 requests connection cookie.
[18:05:44] [connection] 127.0.0.1:63146 requests connection cookie.
[18:05:44] [connection] 127.0.0.1:63145 requests connection cookie.
[18:05:44] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:44] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:45] [connection] 127.0.0.1:63143 requests connection cookie.
[18:05:45] [connection] 127.0.0.1:63149 requests connection cookie.
[18:05:45] Number of zombies created: 400
[18:05:45]   Loading filterscript 'WeaponSpawner.amx'...

[18:05:45]   Loaded 15 filterscripts.

[18:05:45] [connection] 127.0.0.1:63147 requests connection cookie.
[18:05:45] Loaded 3 vehicles from: vehicles/trains.txt
[18:05:45] [connection] 127.0.0.1:63148 requests connection cookie.
[18:05:45] [connection] 127.0.0.1:63150 requests connection cookie.
[18:05:45] Loaded 3 vehicles from: vehicles/pilots.txt
[18:05:45] Loaded 15 vehicles from: vehicles/lv_law.txt
[18:05:45] Loaded 39 vehicles from: vehicles/lv_airport.txt
[18:05:45] Loaded 255 vehicles from: vehicles/lv_gen.txt
[18:05:45] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:45] Loaded 38 vehicles from: vehicles/sf_law.txt
[18:05:45] Loaded 35 vehicles from: vehicles/sf_airport.txt
[18:05:45] Loaded 353 vehicles from: vehicles/sf_gen.txt
[18:05:45] Loaded 24 vehicles from: vehicles/ls_law.txt
[18:05:45] Loaded 37 vehicles from: vehicles/ls_airport.txt
[18:05:45] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
[18:05:45] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
[18:05:45] Loaded 71 vehicles from: vehicles/whetstone.txt
[18:05:45] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:45] Loaded 168 vehicles from: vehicles/bone.txt
[18:05:45] Loaded 61 vehicles from: vehicles/flint.txt
[18:05:45] Blocking 127.0.0.1 due to a 'server full' attack (1)
[18:05:45] Loaded 96 vehicles from: vehicles/tierra.txt
[18:05:46] [connection] 127.0.0.1:63151 requests connection cookie.
[18:05:46] Loaded 96 vehicles from: vehicles/red_county.txt
[18:05:46] Total vehicles from files: 1781
[18:05:46] Reading File: blank
[18:05:46] Reading File: properties/houses.txt
[18:05:46] Reading File: properties/businesses.txt
[18:05:46] Reading File: properties/banks.txt
[18:05:46] Reading File: properties/police.txt
[18:05:46]   RNPC versionchecker: checking for updates...
[18:05:46] MapAndreas successfully initiated
[18:05:46] 
---------------------------------------
[18:05:46] Running Grand Larceny - by the SA-MP team

[18:05:46] ---------------------------------------

[18:05:46] Number of vehicle models: 173
[18:05:46] [connection] incoming connection: 127.0.0.1:50176 id: 0
[18:05:46] [connection] incoming connection: 127.0.0.1:50178 id: 1
[18:05:46] [connection] incoming connection: 127.0.0.1:50177 id: 2
[18:05:46] [connection] incoming connection: 127.0.0.1:50179 id: 3
[18:05:46] [connection] incoming connection: 127.0.0.1:50180 id: 4
[18:05:46] [connection] incoming connection: 127.0.0.1:50181 id: 5
[18:05:46] [connection] incoming connection: 127.0.0.1:50182 id: 6
[18:05:46] [npc:join] Zombie[2] has joined the server (0:127.0.0.1)
[18:05:46] [npc:join] Zombie[3] has joined the server (1:127.0.0.1)
[18:05:46] [npc:join] Zombie[1] has joined the server (2:127.0.0.1)
[18:05:46] [npc:join] Zombie[4] has joined the server (3:127.0.0.1)
[18:05:46] [npc:join] Zombie[5] has joined the server (4:127.0.0.1)
[18:05:46] [npc:join] Zombie[6] has joined the server (5:127.0.0.1)
[18:05:46] [npc:join] Zombie[7] has joined the server (6:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50183 id: 7
[18:05:46] [connection] incoming connection: 127.0.0.1:50184 id: 8
[18:05:46] [connection] incoming connection: 127.0.0.1:50185 id: 9
[18:05:46] [connection] incoming connection: 127.0.0.1:50189 id: 10
[18:05:46] [npc:join] Zombie[8] has joined the server (7:127.0.0.1)
[18:05:46] [npc:join] Zombie[9] has joined the server (8:127.0.0.1)
[18:05:46] [npc:join] Zombie[10] has joined the server (9:127.0.0.1)
[18:05:46] [npc:join] Zombie[14] has joined the server (10:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50213 id: 11
[18:05:46] [connection] incoming connection: 127.0.0.1:50215 id: 12
[18:05:46] [npc:join] Zombie[38] has joined the server (11:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50219 id: 13
[18:05:46] [npc:join] Zombie[40] has joined the server (12:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50220 id: 14
[18:05:46] [npc:join] Zombie[44] has joined the server (13:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50186 id: 15
[18:05:46] [connection] incoming connection: 127.0.0.1:50187 id: 16
[18:05:46] [npc:join] Zombie[45] has joined the server (14:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50188 id: 17
[18:05:46] [connection] incoming connection: 127.0.0.1:50190 id: 18
[18:05:46] [connection] incoming connection: 127.0.0.1:50191 id: 19
[18:05:46] [npc:join] Zombie[11] has joined the server (15:127.0.0.1)
[18:05:46] [npc:join] Zombie[12] has joined the server (16:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50192 id: 20
[18:05:46] [connection] incoming connection: 127.0.0.1:50230 id: 21
[18:05:46] [npc:join] Zombie[13] has joined the server (17:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50193 id: 22
[18:05:46] [connection] incoming connection: 127.0.0.1:50194 id: 23
[18:05:46] [npc:join] Zombie[15] has joined the server (18:127.0.0.1)
[18:05:46] [npc:join] Zombie[16] has joined the server (19:127.0.0.1)
[18:05:46] [npc:join] Zombie[17] has joined the server (20:127.0.0.1)
[18:05:46] [npc:join] Zombie[55] has joined the server (21:127.0.0.1)
[18:05:46] [npc:join] Zombie[18] has joined the server (22:127.0.0.1)
[18:05:46] [npc:join] Zombie[19] has joined the server (23:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50247 id: 24
[18:05:46] [connection] incoming connection: 127.0.0.1:50251 id: 25
[18:05:46] [npc:join] Zombie[72] has joined the server (24:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50195 id: 26
[18:05:46] [connection] incoming connection: 127.0.0.1:50196 id: 27
[18:05:46] [npc:join] Zombie[76] has joined the server (25:127.0.0.1)
[18:05:46] [connection] incoming connection: 127.0.0.1:50197 id: 28
[18:05:46] [connection] incoming connection: 127.0.0.1:50198 id: 29
[18:05:46] [connection] incoming connection: 127.0.0.1:50199 id: 30
[18:05:46] [npc:join] Zombie[20] has joined the server (26:127.0.0.1)
[18:05:46] [npc:join] Zombie[21] has joined the server (27:127.0.0.1)
[18:05:46] [npc:join] Zombie[22] has joined the server (28:127.0.0.1)
[18:05:46] [npc:join] Zombie[23] has joined the server (29:127.0.0.1)
[18:05:46] [npc:join] Zombie[24] has joined the server (30:127.0.0.1)
[18:05:46] [connection] 127.0.0.1:63152 requests connection cookie.
[18:05:46] [connection] 127.0.0.1:63155 requests connection cookie.
[18:05:46] [connection] incoming connection: 127.0.0.1:63758 id: 31
[18:05:46] [npc:join] Zombie[360] has joined the server (31:127.0.0.1)
[18:05:46] [connection] 127.0.0.1:63153 requests connection cookie.
[18:05:46] [connection] 127.0.0.1:63154 requests connection cookie.
[18:05:47] [connection] 127.0.0.1:63156 requests connection cookie.
[18:05:47] [connection] 127.0.0.1:63157 requests connection cookie.
[18:05:47] [connection] 127.0.0.1:63159 requests connection cookie.
[18:05:47] [connection] 127.0.0.1:63158 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63240 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63248 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63238 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63164 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63165 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63160 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63162 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63163 requests connection cookie.
[18:05:48] [connection] 127.0.0.1:63166 requests connection cookie.
[18:05:49] [connection] 127.0.0.1:63168 requests connection cookie.
[18:05:49] [connection] 127.0.0.1:63167 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63274 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63169 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63170 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63174 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63173 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63171 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63172 requests connection cookie.
[18:05:50] [connection] 127.0.0.1:63328 requests connection cookie.
[18:05:51] [connection] 127.0.0.1:63178 requests connection cookie.
[18:05:51] [connection] 127.0.0.1:63176 requests connection cookie.
[18:05:51] [connection] 127.0.0.1:63177 requests connection cookie.
[18:05:52] [connection] 127.0.0.1:63179 requests connection cookie.
[18:05:52] [connection] 127.0.0.1:63180 requests connection cookie.
[18:05:52] [connection] 127.0.0.1:63184 requests connection cookie.
[18:05:52] [connection] 127.0.0.1:63181 requests connection cookie.
[18:05:52] [connection] 127.0.0.1:63185 requests connection cookie.
[18:05:52] [connection] 127.0.0.1:63186 requests connection cookie.
[18:05:53] [connection] 127.0.0.1:63188 requests connection cookie.
[18:05:53] [connection] 127.0.0.1:63190 requests connection cookie.
[18:05:53] [connection] 127.0.0.1:63187 requests connection cookie.
[18:05:53] [connection] 127.0.0.1:63191 requests connection cookie.
[18:05:53] [connection] 127.0.0.1:63398 requests connection cookie.
[18:05:53] [connection] 127.0.0.1:63762 requests connection cookie.
[18:05:54] [connection] 127.0.0.1:63192 requests connection cookie.
[18:05:54] [connection] 127.0.0.1:63194 requests connection cookie.
[18:05:54] [connection] 127.0.0.1:63195 requests connection cookie.
[18:05:54] [connection] 127.0.0.1:63196 requests connection cookie.
[18:05:54] [connection] 127.0.0.1:63197 requests connection cookie.
[18:05:54] [connection] 127.0.0.1:63198 requests connection cookie.
[18:05:54] [connection] 127.0.0.1:63199 requests connection cookie.
[18:05:55] [connection] 127.0.0.1:63200 requests connection cookie.
[18:05:55] [connection] 127.0.0.1:63201 requests connection cookie.
[18:05:56] [connection] 127.0.0.1:63202 requests connection cookie.
[18:05:56] [connection] 127.0.0.1:63204 requests connection cookie.
[18:05:56] [connection] 127.0.0.1:63205 requests connection cookie.
[18:05:57] [connection] 127.0.0.1:63207 requests connection cookie.
[18:05:57] [connection] 127.0.0.1:63210 requests connection cookie.
[18:05:57] [connection] 127.0.0.1:63208 requests connection cookie.
[18:05:57] [connection] 127.0.0.1:63206 requests connection cookie.
[18:05:57] [connection] 127.0.0.1:63209 requests connection cookie.
[18:05:57] [connection] 127.0.0.1:63211 requests connection cookie.
[18:05:57] [connection] 127.0.0.1:63212 requests connection cookie.
[18:05:58] [connection] 127.0.0.1:63214 requests connection cookie.
[18:05:59] [connection] 127.0.0.1:63215 requests connection cookie.
[18:05:59] [connection] 127.0.0.1:63217 requests connection cookie.
[18:05:59] [connection] 127.0.0.1:63216 requests connection cookie.
[18:05:59] [connection] 127.0.0.1:63218 requests connection cookie.
[18:05:59] [connection] 127.0.0.1:63219 requests connection cookie.
[18:05:59] [connection] 127.0.0.1:63220 requests connection cookie.
[18:05:59] [connection] 127.0.0.1:63221 requests connection cookie.
[18:06:01] [connection] 127.0.0.1:63223 requests connection cookie.
[18:06:01] [connection] 127.0.0.1:63222 requests connection cookie.
[18:06:01] [connection] 127.0.0.1:63224 requests connection cookie.
[18:06:01] [connection] 127.0.0.1:63225 requests connection cookie.
[18:06:01] [connection] 127.0.0.1:63227 requests connection cookie.
[18:06:01] [connection] 127.0.0.1:63228 requests connection cookie.
[18:06:01] [connection] 127.0.0.1:63226 requests connection cookie.
[18:06:02] [connection] 127.0.0.1:63229 requests connection cookie.
[18:06:02] [connection] 127.0.0.1:63230 requests connection cookie.
[18:06:03] [connection] 127.0.0.1:63231 requests connection cookie.
[18:06:03] [connection] 127.0.0.1:63232 requests connection cookie.
[18:06:03] [connection] 127.0.0.1:63233 requests connection cookie.
[18:06:03] [connection] 127.0.0.1:63235 requests connection cookie.
[18:06:04] [connection] 127.0.0.1:63234 requests connection cookie.
[18:06:04] [connection] 127.0.0.1:63239 requests connection cookie.
[18:06:04] [connection] 127.0.0.1:63241 requests connection cookie.
[18:06:04] [connection] 127.0.0.1:63242 requests connection cookie.
[18:06:05] [connection] 127.0.0.1:63246 requests connection cookie.
[18:06:05] [connection] 127.0.0.1:63245 requests connection cookie.
[18:06:05] [connection] 127.0.0.1:63247 requests connection cookie.
[18:06:05] [connection] 127.0.0.1:63249 requests connection cookie.
[18:06:05] [connection] 127.0.0.1:63250 requests connection cookie.
[18:06:06] [connection] 127.0.0.1:63251 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63252 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63258 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63253 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63254 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63256 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63257 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63259 requests connection cookie.
[18:06:07] [connection] 127.0.0.1:63255 requests connection cookie.
[18:06:08] [connection] 127.0.0.1:63260 requests connection cookie.
[18:06:09] [connection] 127.0.0.1:63261 requests connection cookie.
[18:06:09] [connection] 127.0.0.1:63263 requests connection cookie.
[18:06:09] [connection] 127.0.0.1:63264 requests connection cookie.
[18:06:09] [connection] 127.0.0.1:63265 requests connection cookie.
[18:06:09] [connection] 127.0.0.1:63266 requests connection cookie.
[18:06:09] [connection] 127.0.0.1:63267 requests connection cookie.
[18:06:09] [connection] 127.0.0.1:63262 requests connection cookie.
[18:06:10] [connection] 127.0.0.1:63268 requests connection cookie.
[18:06:10] [connection] 127.0.0.1:63269 requests connection cookie.
[18:06:10] [connection] 127.0.0.1:63270 requests connection cookie.
[18:06:10] [connection] 127.0.0.1:63271 requests connection cookie.
[18:06:10] [connection] 127.0.0.1:63275 requests connection cookie.
[18:06:10] [connection] 127.0.0.1:63273 requests connection cookie.
[18:06:10] [connection] 127.0.0.1:63272 requests connection cookie.
[18:06:11] [connection] 127.0.0.1:63276 requests connection cookie.
[18:06:12] [connection] 127.0.0.1:63277 requests connection cookie.
[18:06:12] [connection] 127.0.0.1:63278 requests connection cookie.
[18:06:12] [connection] 127.0.0.1:63280 requests connection cookie.
[18:06:12] [connection] 127.0.0.1:63281 requests connection cookie.
[18:06:12] [connection] 127.0.0.1:63283 requests connection cookie.
[18:06:12] [connection] 127.0.0.1:63279 requests connection cookie.
[18:06:12] [connection] 127.0.0.1:63282 requests connection cookie.
[18:06:13] [connection] 127.0.0.1:63284 requests connection cookie.
[18:06:13] [connection] 127.0.0.1:63285 requests connection cookie.
[18:06:13] [connection] 127.0.0.1:63286 requests connection cookie.
[18:06:14] [connection] 127.0.0.1:63287 requests connection cookie.
[18:06:14] [connection] 127.0.0.1:63288 requests connection cookie.
[18:06:14] [connection] 127.0.0.1:63290 requests connection cookie.
[18:06:14] [connection] 127.0.0.1:63289 requests connection cookie.
[18:06:14] [connection] 127.0.0.1:63291 requests connection cookie.
[18:06:14] [connection] 127.0.0.1:63292 requests connection cookie.
[18:06:15] [connection] 127.0.0.1:63293 requests connection cookie.
[18:06:15] [connection] 127.0.0.1:63297 requests connection cookie.
[18:06:15] [connection] 127.0.0.1:63298 requests connection cookie.
[18:06:16] [connection] 127.0.0.1:63294 requests connection cookie.
[18:06:16] [connection] 127.0.0.1:63295 requests connection cookie.
[18:06:16] [connection] 127.0.0.1:63296 requests connection cookie.
[18:06:16] [connection] 127.0.0.1:63299 requests connection cookie.
[18:06:16] [connection] 127.0.0.1:63301 requests connection cookie.
[18:06:16] [connection] 127.0.0.1:63300 requests connection cookie.
[18:06:17] [connection] 127.0.0.1:63305 requests connection cookie.
[18:06:17] [connection] 127.0.0.1:63303 requests connection cookie.
[18:06:17] [connection] 127.0.0.1:63304 requests connection cookie.
[18:06:18] [connection] 127.0.0.1:63306 requests connection cookie.
[18:06:18] [connection] 127.0.0.1:63307 requests connection cookie.
[18:06:18] [connection] 127.0.0.1:63308 requests connection cookie.
[18:06:18] [connection] 127.0.0.1:63309 requests connection cookie.
[18:06:18] [connection] 127.0.0.1:63310 requests connection cookie.
[18:06:19] [connection] 127.0.0.1:63312 requests connection cookie.
[18:06:19] [connection] 127.0.0.1:63311 requests connection cookie.
[18:06:20] [connection] 127.0.0.1:63315 requests connection cookie.
[18:06:20] [connection] 127.0.0.1:63313 requests connection cookie.
[18:06:20] [connection] 127.0.0.1:63316 requests connection cookie.
[18:06:20] [connection] 127.0.0.1:63314 requests connection cookie.
[18:06:20] [connection] 127.0.0.1:63317 requests connection cookie.
[18:06:21] [connection] 127.0.0.1:63320 requests connection cookie.
[18:06:21] [connection] 127.0.0.1:63318 requests connection cookie.
[18:06:21] [connection] 127.0.0.1:63319 requests connection cookie.
[18:06:21] [connection] 127.0.0.1:63323 requests connection cookie.
[18:06:22] [connection] 127.0.0.1:63321 requests connection cookie.
[18:06:22] [connection] 127.0.0.1:63322 requests connection cookie.
[18:06:22] [connection] 127.0.0.1:63324 requests connection cookie.
[18:06:22] [connection] 127.0.0.1:63325 requests connection cookie.
[18:06:22] [connection] 127.0.0.1:63326 requests connection cookie.
[18:06:22] [connection] 127.0.0.1:63327 requests connection cookie.
[18:06:23] [connection] 127.0.0.1:63331 requests connection cookie.
[18:06:23] [connection] 127.0.0.1:63330 requests connection cookie.
[18:06:24] [connection] 127.0.0.1:63333 requests connection cookie.
[18:06:24] [connection] 127.0.0.1:63332 requests connection cookie.
[18:06:24] [connection] 127.0.0.1:63329 requests connection cookie.
[18:06:24] [connection] 127.0.0.1:63335 requests connection cookie.
[18:06:25] [connection] 127.0.0.1:63334 requests connection cookie.
[18:06:25] [connection] 127.0.0.1:63336 requests connection cookie.
[18:06:25] [connection] 127.0.0.1:63337 requests connection cookie.
[18:06:25] [connection] 127.0.0.1:63338 requests connection cookie.
[18:06:25] [connection] 127.0.0.1:63339 requests connection cookie.
[18:06:25] [connection] 127.0.0.1:63340 requests connection cookie.
[18:06:25] [connection] 127.0.0.1:63341 requests connection cookie.
[18:06:26] [connection] 127.0.0.1:63342 requests connection cookie.
[18:06:26] [connection] 127.0.0.1:63343 requests connection cookie.
[18:06:26] [connection] 127.0.0.1:63344 requests connection cookie.
[18:06:27] [connection] 127.0.0.1:63345 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63346 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63347 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63348 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63351 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63349 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63350 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63352 requests connection cookie.
[18:06:28] [connection] 127.0.0.1:63353 requests connection cookie.
[18:06:29] [connection] 127.0.0.1:63354 requests connection cookie.
[18:06:30] [connection] 127.0.0.1:63356 requests connection cookie.
[18:06:30] [connection] 127.0.0.1:63359 requests connection cookie.
[18:06:30] [connection] 127.0.0.1:63357 requests connection cookie.
[18:06:30] [connection] 127.0.0.1:63358 requests connection cookie.
[18:06:30] [connection] 127.0.0.1:63355 requests connection cookie.
[18:06:30] [connection] 127.0.0.1:63361 requests connection cookie.
[18:06:31] [connection] 127.0.0.1:63362 requests connection cookie.
[18:06:32] [connection] 127.0.0.1:63360 requests connection cookie.
[18:06:32] [connection] 127.0.0.1:63363 requests connection cookie.
[18:06:32] [connection] 127.0.0.1:63365 requests connection cookie.
[18:06:32] [connection] 127.0.0.1:63368 requests connection cookie.
[18:06:32] [connection] 127.0.0.1:63369 requests connection cookie.
[18:06:33] [connection] 127.0.0.1:63367 requests connection cookie.
[18:06:33] [connection] 127.0.0.1:63370 requests connection cookie.
[18:06:33] [connection] 127.0.0.1:63371 requests connection cookie.
[18:06:33] [connection] 127.0.0.1:63372 requests connection cookie.
[18:06:33] [connection] 127.0.0.1:63373 requests connection cookie.
[18:06:34] [connection] 127.0.0.1:63374 requests connection cookie.
[18:06:34] [connection] 127.0.0.1:63377 requests connection cookie.
[18:06:34] [connection] 127.0.0.1:63378 requests connection cookie.
[18:06:34] [connection] 127.0.0.1:63379 requests connection cookie.
[18:06:34] [connection] 127.0.0.1:63380 requests connection cookie.
[18:06:34] [connection] 127.0.0.1:63381 requests connection cookie.
[18:06:35] [connection] 127.0.0.1:63382 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63383 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63384 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63385 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63386 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63387 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63388 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63389 requests connection cookie.
[18:06:36] [connection] 127.0.0.1:63390 requests connection cookie.
[18:06:38] [connection] 127.0.0.1:63391 requests connection cookie.
[18:06:38] [connection] 127.0.0.1:63392 requests connection cookie.
[18:06:38] [connection] 127.0.0.1:63393 requests connection cookie.
[18:06:38] [connection] 127.0.0.1:63394 requests connection cookie.
[18:06:38] [connection] 127.0.0.1:63395 requests connection cookie.
[18:06:38] [connection] 127.0.0.1:63396 requests connection cookie.
[18:06:38] [connection] 127.0.0.1:63397 requests connection cookie.
[18:06:39] [connection] 127.0.0.1:63400 requests connection cookie.
[18:06:40] [connection] 127.0.0.1:63399 requests connection cookie.
[18:06:40] [connection] 127.0.0.1:63401 requests connection cookie.
[18:06:40] [connection] 127.0.0.1:63403 requests connection cookie.
[18:06:40] [connection] 127.0.0.1:63404 requests connection cookie.
[18:06:40] [connection] 127.0.0.1:63402 requests connection cookie.
[18:06:40] [connection] 127.0.0.1:63405 requests connection cookie.
[18:06:41] [connection] 127.0.0.1:63406 requests connection cookie.
[18:06:42] [connection] 127.0.0.1:63409 requests connection cookie.
[18:06:43] [connection] 127.0.0.1:63407 requests connection cookie.
[18:06:43] [connection] 127.0.0.1:63410 requests connection cookie.
[18:06:43] [connection] 127.0.0.1:63408 requests connection cookie.
[18:06:43] [connection] 127.0.0.1:63411 requests connection cookie.
[18:06:43] [connection] 127.0.0.1:63412 requests connection cookie.
[18:06:43] [connection] 127.0.0.1:63413 requests connection cookie.
[18:06:43] [connection] 127.0.0.1:63414 requests connection cookie.
[18:06:44] [connection] 127.0.0.1:63415 requests connection cookie.
[18:06:44] [connection] 127.0.0.1:63750 requests connection cookie.
[18:06:45] [connection] 127.0.0.1:63751 requests connection cookie.
[18:06:45] [connection] 127.0.0.1:63752 requests connection cookie.
[18:06:45] [connection] 127.0.0.1:63753 requests connection cookie.
[18:06:45] [connection] 127.0.0.1:63754 requests connection cookie.
[18:06:45] [connection] 127.0.0.1:63755 requests connection cookie.
[18:06:45] [connection] 127.0.0.1:63756 requests connection cookie.
[18:06:46] [connection] 127.0.0.1:63757 requests connection cookie.
[18:06:46] [connection] 127.0.0.1:63759 requests connection cookie.
[18:06:47] [connection] 127.0.0.1:63760 requests connection cookie.
[18:06:47] [connection] 127.0.0.1:63761 requests connection cookie.
[18:06:47] [connection] 127.0.0.1:63764 requests connection cookie.
[18:06:47] [connection] 127.0.0.1:63765 requests connection cookie.
[18:06:47] [connection] 127.0.0.1:63763 requests connection cookie.
[18:06:47] [connection] 127.0.0.1:63766 requests connection cookie.
[18:06:48] [connection] 127.0.0.1:63767 requests connection cookie.
[18:06:49] [connection] 127.0.0.1:63768 requests connection cookie.
[18:06:49] [connection] 127.0.0.1:63770 requests connection cookie.
[18:06:49] [connection] 127.0.0.1:63771 requests connection cookie.
[18:06:49] [connection] 127.0.0.1:63772 requests connection cookie.
[18:06:49] [connection] 127.0.0.1:63773 requests connection cookie.
[18:06:49] [connection] 127.0.0.1:63769 requests connection cookie.
[18:06:49] [connection] 127.0.0.1:63774 requests connection cookie.
[18:06:50] [connection] 127.0.0.1:63775 requests connection cookie.
[18:06:51] [connection] 127.0.0.1:63776 requests connection cookie.
[18:06:52] [connection] 127.0.0.1:63777 requests connection cookie.
[18:06:52] [connection] 127.0.0.1:63779 requests connection cookie.
[18:06:52] [connection] 127.0.0.1:63781 requests connection cookie.
[18:06:52] [connection] 127.0.0.1:63780 requests connection cookie.
[18:06:52] [connection] 127.0.0.1:63778 requests connection cookie.
[18:06:52] [connection] 127.0.0.1:63782 requests connection cookie.
[18:06:53] [connection] 127.0.0.1:63783 requests connection cookie.
[18:06:54] [connection] 127.0.0.1:63784 requests connection cookie.
[18:06:54] [connection] 127.0.0.1:63786 requests connection cookie.
[18:06:54] [connection] 127.0.0.1:63787 requests connection cookie.
[18:06:54] [connection] 127.0.0.1:63788 requests connection cookie.
[18:06:55] [connection] 127.0.0.1:63785 requests connection cookie.
[18:06:55] [connection] 127.0.0.1:63789 requests connection cookie.
[18:06:55] [connection] 127.0.0.1:63791 requests connection cookie.
[18:06:55] [connection] 127.0.0.1:63790 requests connection cookie.
[18:06:56] [connection] 127.0.0.1:63792 requests connection cookie.
[18:06:56] [connection] 127.0.0.1:63795 requests connection cookie.
[18:06:56] [connection] 127.0.0.1:63794 requests connection cookie.
[18:06:57] [connection] 127.0.0.1:63793 requests connection cookie.
[18:06:57] [connection] 127.0.0.1:63796 requests connection cookie.
[18:06:57] [connection] 127.0.0.1:63797 requests connection cookie.
[18:06:58] [connection] 127.0.0.1:63798 requests connection cookie.
[18:08:06] [connection] 127.0.0.1:59406 requests connection cookie.
Can someone help me?
Reply
#2

Show us your code.
Reply
#3

Код HTML:
/*
        ZNPC: Zombified Non-Player Characters [v1.0] by Weponz
*/
#define FILTERSCRIPT
#include <a_samp>//Credits: SA:MP Team
#include <rnpc>//Credits: Mauzen
#pragma tabsize 0

#define MAX_ZOMBIES 400//OPTIONAL: Define the max amount of zombies to spawn here. (Default: 50)

#define ZOMBIE_NAME "Zombie[%i]"//OPTIONAL: Define the name of zombies here. (Default: Zombie[%i])
#define ZOMBIE_HEALTH 75//OPTIONAL: Define the full amount of health for zombies here. (Default: 50%)
#define ZOMBIE_SKIN 162//OPTIONAL: Define the skin id for zombies here. (Default: 162)
#define ZOMBIE_COLOR 0xFF0000FF//OPTIONAL: Define the color of zombies here. (Default: Red)
#define ZOMBIE_DETECT 25//OPTIONAL: Define the minimum detect range for zombies here. (Default: 25 Metres)
#define ZOMBIE_DAMAGE 25//OPTIONAL: Define the damage amount for zombies here. (Default: 25%)

forward OnZombieAttack();
forward OnZombieRoam();

forward ResetDetectRange(playerid);

new GetZombieVictimID[MAX_ZOMBIES];

new GetVictimDetectRange[MAX_PLAYERS];
new GetVictimResetTimer[MAX_PLAYERS];
new GetVictimTimerStatus[MAX_PLAYERS];

new Float:ZombieSpawns[3][3] =//REQUIRED: Change [2] to the amount of spawn locations.
{
        {704.8528,-607.4617,16.3359},
        {621.8611,-591.7279,17.2330},
        {689.1137,-496.2032,16.3359}
};


stock GetZombieVictim(npcid)
{
        for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
        {
            if(!IsPlayerNPC(playerid) && IsPlayerConnected(playerid))
            {
                new Float:x, Float:y, Float:z;
                        GetPlayerPos(npcid, x, y, z);
                        if(IsPlayerInRangeOfPoint(playerid, GetVictimDetectRange[playerid], x, y, z) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GetPlayerInterior(playerid) == 0 && GetPlayerVirtualWorld(playerid) == 0) return playerid;
            }
        }
        return INVALID_PLAYER_ID;
}

public OnFilterScriptInit()
{
    RNPC_SetUpdateRate(80);

    MapAndreas_Init(MAP_ANDREAS_MODE_NOBUFFER);

    new count = 0;
    for(new npcid = 0; npcid < MAX_ZOMBIES; npcid++)
        {
            new name[24];
            format(name, sizeof(name), ZOMBIE_NAME, npcid + 1);
                ConnectRNPC(name);
                count++;
        }
        printf("Number of zombies created: %i", count);

        SetTimer("OnZombieAttack", 1000, true);
        SetTimer("OnZombieRoam", 10000, true);
        return 1;
}

public OnPlayerSpawn(playerid)
{
        ApplyAnimation(playerid, "BOMBER", "null", 0, 0, 0, 0, 0, 1);
        ApplyAnimation(playerid, "PED", "null", 0, 0, 0, 0, 0, 1);

        if(IsPlayerNPC(playerid))
        {
                new spawn = random(sizeof(ZombieSpawns));
                SetPlayerPos(playerid, ZombieSpawns[spawn][0], ZombieSpawns[spawn][1], ZombieSpawns[spawn][2]);

                SetRNPCHealth(playerid, ZOMBIE_HEALTH);
                SetPlayerSkin(playerid, ZOMBIE_SKIN);
                SetPlayerColor(playerid, ZOMBIE_COLOR);

                RNPC_SetShootable(playerid, 1);
                RNPC_ToggleVehicleCollisionCheck(playerid, 1);

                GetZombieVictimID[playerid] = INVALID_PLAYER_ID;
                return 1;
        }
        else
        {
            GetVictimDetectRange[playerid] = ZOMBIE_DETECT;
            GetVictimTimerStatus[playerid] = 0;
        }
        return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        if(IsPlayerNPC(killerid))
        {
                ApplyAnimation(killerid, "BOMBER", "BOM_Plant", 4.1, 0, 1, 1, 1, 0, 1);
                SetRNPCHealth(killerid, ZOMBIE_HEALTH);
                return SendDeathMessage(killerid, GetZombieVictimID[killerid], reason);
        }
        return 1;
}

public OnRNPCDeath(npcid, killerid, reason)
{
    SendDeathMessage(killerid, npcid, reason);
        ApplyAnimation(npcid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
        RespawnRNPC(npcid);
        return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if(!IsPlayerNPC(playerid))
        {
            if(newkeys & KEY_FIRE)
                {
                        if(GetPlayerWeapon(playerid) >= 22 && GetPlayerWeapon(playerid) <= 38)
                        {
                                GetVictimDetectRange[playerid] = (ZOMBIE_DETECT * 4);
                                if(GetVictimTimerStatus[playerid] == 1) { KillTimer(GetVictimResetTimer[playerid]); }
                                GetVictimTimerStatus[playerid] = 1;
                                GetVictimResetTimer[playerid] = SetTimerEx("ResetDetectRange", 5000, false, "i", playerid);
                        }
                }
                else if(newkeys & KEY_SPRINT && GetVictimTimerStatus[playerid] == 0)
                {
                    GetVictimDetectRange[playerid] = (ZOMBIE_DETECT * 2);
                        GetVictimTimerStatus[playerid] = 1;
                        GetVictimResetTimer[playerid] = SetTimerEx("ResetDetectRange", 5000, false, "i", playerid);
                }
        }
        return 1;
}

public OnPlayerUpdate(playerid)
{
        if(!IsPlayerNPC(playerid))
        {
            if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK && GetVictimTimerStatus[playerid] == 0)
                {
                    GetVictimDetectRange[playerid] = (ZOMBIE_DETECT / 4);
                        GetVictimTimerStatus[playerid] = 1;
                        GetVictimResetTimer[playerid] = SetTimerEx("ResetDetectRange", 5000, false, "i", playerid);
                }
        }
        return 1;
}

public OnZombieAttack()
{
        for(new npcid = 0; npcid < MAX_ZOMBIES; npcid++)
        {
            if(IsPlayerNPC(npcid))
            {
                if(GetRNPCHealth(npcid) > 0)
                {
                        new victim = GetZombieVictim(npcid), Float:x, Float:y, Float:z, Float:health;
                                GetPlayerPos(npcid, x, y, z);
                        if(victim != INVALID_PLAYER_ID)
                        {
                                        if(IsPlayerInRangeOfPoint(victim, GetVictimDetectRange[victim], x, y, z))
                                        {
                                            GetZombieVictimID[npcid] = victim;

                                            if(IsPlayerInRangeOfPoint(victim, 1, x, y, z))
                                                {
                                                        RNPC_CreateBuild(npcid, PLAYER_RECORDING_TYPE_ONFOOT);
                                                        RNPC_AddPause(100);
                                                        RNPC_SetKeys(KEY_FIRE);
                                                        RNPC_AddPause(100);
                                                        RNPC_SetKeys(0);
                                                        RNPC_FinishBuild();
                                                        RNPC_StartBuildPlayback(npcid);

                                                GetPlayerHealth(victim, health);
                                                        SetPlayerHealth(victim, health - ZOMBIE_DAMAGE);
                                                        continue;
                                                }
                                                GetPlayerPos(victim, x, y, z);

                                                MoveRNPC(npcid, x, y, z, RNPC_SPEED_RUN, 1);
                                        }
                                }
                        }
                }
        }
        return 1;
}

public OnZombieRoam()
{
        for(new npcid = 0; npcid < MAX_ZOMBIES; npcid++)
        {
            if(IsPlayerNPC(npcid))
            {
                if(GetRNPCHealth(npcid) > 0)
                {
                        new victim = GetZombieVictim(npcid), Float:x, 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;
}

public ResetDetectRange(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK)
        {
                GetVictimDetectRange[playerid] = (ZOMBIE_DETECT / 4);
                GetVictimTimerStatus[playerid] = 1;
                GetVictimResetTimer[playerid] = SetTimerEx("ResetDetectRange", 5000, false, "i", playerid);
                return 1;
        }

    GetVictimTimerStatus[playerid] = 0;
    GetVictimDetectRange[playerid] = ZOMBIE_DETECT;
        return 1;
}

public OnGameModeInit(){ //OnFilterScriptInit

    //check MapAndreas Init
    new Float:mapunit;
    MapAndreas_FindZ_For2DCoord(0.0,0.0,mapunit);
    if(mapunit <= 0.0){
        MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
    }
    MapAndreas_FindZ_For2DCoord(0.0,0.0,mapunit);
    if(mapunit <= 0.0){
        print("MapAndreas failed to initiated");
    } else {
        print("MapAndreas successfully initiated");
    }

    return 1;
}
Reply
#4

Use pawn tags, + where do you connect them?
Like
ConnectNPC I need that part of the code
Reply
#5

This are my Spawn locations:

Код HTML:
        {704.8528,-607.4617,16.3359},
        {621.8611,-591.7279,17.2330},
        {689.1137,-496.2032,16.3359}
and this are the names of my zombies, the numbers behind the names automatically count on
Код HTML:
#define ZOMBIE_NAME "Zombie[%i]"//OPTIONAL: Define the name of zombies here. (Default: Zombie[%i])
Reply
#6

I want about six zombies spawn simultaneously
Reply
#7

Does someone know how i can make a timer in this script?
Reply
#8

Is this a good Timer and how can i use it?

Код HTML:
forward AntiFloodDelayConnectNPC(NPCNAME[],Script[]);
        forward resetdelaynpc();
        new DelayTime;
        new resettimer;
 
        AntiFloodConnectNPC(NPCNAME[],Script[])
        {
                DelayTime ++;
                if(DelayTime >= 10)
                {
                    new tmpdelaytime = DelayTime-9;
                        SetTimerEx("AntiFloodDelayConnectNPC", 500*tmpdelaytime, 0,"ss",NPCNAME,Script);
                }
                else
                {
                        AntiFloodDelayConnectNPC(NPCNAME,Script);
                }
 
                KillTimer(resettimer);
                resettimer = SetTimer("resetdelaynpc", 510*DelayTime, 0);
        }
 
        public AntiFloodDelayConnectNPC(NPCNAME[],Script[])
        {
                ConnectNPC(NPCNAME,Script);
        }
 
        public resetdelaynpc()
        {
            DelayTime = 0;
        }
Reply
#9

Can anyone help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)