Skip to content

Commit 5f81a57

Browse files
authored
Merge pull request #52 from Disinterpreter/amx-native-explosion
CreateExplosionForPlayer
2 parents 2f86b10 + 9a3a0b0 commit 5f81a57

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

amx/server/syscalls.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3027,6 +3027,12 @@ function GetPlayerWeaponState(amx, player)
30273027
return -1
30283028
end
30293029
end
3030+
3031+
-- Explosion
3032+
function CreateExplosionForPlayer(amx, player, x, y, z, type, radius)
3033+
clientCall(player, 'createExplosion', x, y, z, type, true, -1.0, false)
3034+
return 1
3035+
end
30303036
-----------------------------------------------------
30313037
-- List of the functions and their argument types
30323038

@@ -3625,5 +3631,8 @@ g_SAMPSyscallPrototypes = {
36253631
GetVehicleParamsSirenState = {'v'},
36263632

36273633

3628-
GetPlayerWeaponState = {'p'}
3634+
GetPlayerWeaponState = {'p'},
3635+
3636+
-- Explosion
3637+
CreateExplosionForPlayer = {'p', 'f', 'f', 'f', 'i', 'f'}
36293638
}

0 commit comments

Comments
 (0)