Raised This Month: $ Target: $400
 0% 

Solved gas station explosion damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 12-19-2021 , 08:14   gas station explosion damage
Reply With Quote #1

Hi,

I know how to make the gas station explosion particle ect. but how do you actually hurt people from it when they are near it?

Does anyone know how do it via plugin?

I created the explosion, added sound but how to make it deadly?
thx.
__________________

Last edited by finishlast; 12-19-2021 at 12:37.
finishlast is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 12-19-2021 , 09:07   Re: gas station explosion damage
Reply With Quote #2

You may try: Gas Station Explosion (Any Map)
__________________

Last edited by Marttt; 12-19-2021 at 09:07.
Marttt is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 12-19-2021 , 12:37   Re: gas station explosion damage
Reply With Quote #3

I forgot about the simple things....

thx anyways

float Teleport_Entrance1[3] = { -12573.0, -9913.0, 30.0 };


for(int Client = 1; Client <= MaxClients; Client++)
{
//Ingame:
if(IsClientInGame(Client) && IsPlayerAlive(Client))
{
float Client_Origin[3], Distance1;
GetClientAbsOrigin(Client, Client_Origin);

Distance1 = GetVectorDistance(Client_Origin, Teleport_Entrance1);

if(Distance1 <= 400 && GetClientTeam(Client) == 2)
{
ForcePlayerSuicide(Client);
}

}
}
__________________
finishlast is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 17:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode