Migrate to FCNPC 2.0.8

This commit is contained in:
ChronosXYZ 2024-03-19 04:37:03 +03:00
parent 27de63bc67
commit 227877ebc5
Signed by: ChronosXYZ
GPG Key ID: 189BF50EBD342791
2 changed files with 4 additions and 4 deletions

View File

@ -143,7 +143,7 @@ hook OnNpcConnect( npcid )
return 1; return 1;
} }
hook FCNPC_OnDeath( npcid, killerid, weaponid ) hook FCNPC_OnDeath( npcid, killerid, reason )
{ {
if ( !IsPlayerConnected( killerid ) ) if ( !IsPlayerConnected( killerid ) )
return 1; return 1;
@ -204,7 +204,7 @@ hook FCNPC_OnSpawn( npcid )
return 1; return 1;
} }
hook FCNPC_OnTakeDamage( npcid, damagerid, weaponid, bodypart, Float: health_loss ) hook FCNPC_OnTakeDamage( npcid, damagerid, weaponid, bodypart )
{ {
new civilianid = GetCivilianNpcFromPlayer( npcid ); new civilianid = GetCivilianNpcFromPlayer( npcid );
new clerkid = GetRobberyNpcFromPlayer( npcid ); new clerkid = GetRobberyNpcFromPlayer( npcid );
@ -424,7 +424,7 @@ stock FCNPC_ShootAtPlayer( playerid, npcid, weaponid = 25, clerkid = -1, bool: w
FCNPC_ResetAnimation( npcid ); FCNPC_ResetAnimation( npcid );
FCNPC_ClearAnimations( npcid ); FCNPC_ClearAnimations( npcid );
FCNPC_SetWeapon( npcid, weaponid ); FCNPC_SetWeapon( npcid, weaponid );
FCNPC_ToggleInfiniteAmmo( npcid, true ); FCNPC_ToggleInfiniteAmmo( npcid );
FCNPC_AimAtPlayer( npcid, playerid, .shoot = true, .shoot_delay = -1, .setangle = true, .offset_x = 0.0, .offset_y = 0.0, .offset_z = 0.6 ); FCNPC_AimAtPlayer( npcid, playerid, .shoot = true, .shoot_delay = -1, .setangle = true, .offset_x = 0.0, .offset_y = 0.0, .offset_z = 0.6 );
return 1; return 1;
} }

View File

@ -10,7 +10,7 @@ dependencies:
- Y-Less/sscanf:v2.8.2 - Y-Less/sscanf:v2.8.2
- samp-incognito/samp-streamer-plugin:v2.9.3 - samp-incognito/samp-streamer-plugin:v2.9.3
- Southclaws/samp-whirlpool:v1.0.0 - Southclaws/samp-whirlpool:v1.0.0
- ziggi/FCNPC:v1.8.2 - ziggi/FCNPC:v2.0.8
- philip1337/samp-plugin-mapandreas:v1.2.1 - philip1337/samp-plugin-mapandreas:v1.2.1
- JaTochNietDan/SA-MP-FileManager:1.5.1 - JaTochNietDan/SA-MP-FileManager:1.5.1
- pawn-lang/YSI-Includes:v4.0.0 - pawn-lang/YSI-Includes:v4.0.0