Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [Akatsuki]Itachi on July 04, 2013, 10:26:58 am

Title: How to set an explosion and area ?
Post by: [Akatsuki]Itachi on July 04, 2013, 10:26:58 am
I want the function of explosion for script and how to set an area when somebody come in it will send client message , i want to know the function, who can tell me ?
Title: Re: How to set an explosion and area ?
Post by: dynavolt71 on July 04, 2013, 11:36:58 am
I want the function of explosion for script and how to set an area when somebody come in it will send client message , i want to know the function, who can tell me ?
Impossible in 0.3z.
Title: Re: How to set an explosion and area ?
Post by: NeskWriter on July 04, 2013, 01:36:50 pm
Only the last one is possible, try to experiment with timers or "while" loop
Title: Re: How to set an explosion and area ?
Post by: dynavolt71 on July 04, 2013, 02:40:29 pm
Only the last one is possible, try to experiment with timers or "while" loop
:s with cars ?
Title: Re: How to set an explosion and area ?
Post by: NeskWriter on July 04, 2013, 09:27:55 pm
Only the last one is possible, try to experiment with timers or "while" loop
:s with cars ?

nah, he asked about creating an area
Title: Re: How to set an explosion and area ?
Post by: [Akatsuki]Itachi on July 05, 2013, 09:00:53 am
Only the last one is possible, try to experiment with timers or "while" loop

What do you mean by "while" loop ?

And the explosion I found it at here, so I asked who can tell me how to use it. At
http://forum.vicecitymultiplayer.com/index.php?topic=5727.30      if you scroll down a little, you will find it
Title: Re: How to set an explosion and area ?
Post by: NeskWriter on July 05, 2013, 01:44:21 pm
Only the last one is possible, try to experiment with timers or "while" loop

What do you mean by "while" loop ?


The "while" loop is used to pass the function while parameter is equal (or not equal, by your choise) to the specified.
for example:

[pawn]
new a;
while(a < 10)
{
    a++;
}
[/pawn]
Title: Re: How to set an explosion and area ?
Post by: [Akatsuki]Itachi on July 06, 2013, 02:53:41 am
Can you make a more specified example ? and the
a < 10
the ten is what meaning ? and where is the place to put coordinate ? 
Title: Re: How to set an explosion and area ?
Post by: NeskWriter on July 06, 2013, 05:53:35 pm
Can you make a more specified example ? and the
a < 10
the ten is what meaning ? and where is the place to put coordinate ?

try to search for pawn tutorials and guides

"a" is variable, it's value can be set by numbers (-99999; +99999)
"while(a < 10)" is a condition that pastes the function (functions) while "a < 10" (example)
Title: Re: How to set an explosion and area ?
Post by: [Akatsuki]Itachi on July 07, 2013, 02:50:02 am
i still don't get it  :(
Title: Re: How to set an explosion and area ?
Post by: [AoD]NC on July 14, 2013, 11:28:39 pm
Explosions are impossible, but you can try to spam cars with health zero. However they need a few seconds to explode.

If you want to check if a player is in an area, you have to use or a timer or the on player move event. The easiest way is to search if the player is in a circular around a point - calculate the distance between player pos and the middle of your area.
Title: Re: How to set an explosion and area ?
Post by: mrockxkingbutt on April 03, 2014, 03:18:03 pm
I want the function of explosion for script and how to set an area when somebody come in it will send client message , i want to know the function, who can tell me ?

it will be possible to kill a player when in a area you want to kill.

but impossible to explosion.
 but kinda possible

by adding a vehicle underground of area.
and set a timer loop for it destroying again and again to set explosion!
Title: Re: How to set an explosion and area ?
Post by: dynavolt71 on April 04, 2014, 01:57:25 am
I want the function of explosion for script and how to set an area when somebody come in it will send client message , i want to know the function, who can tell me ?

it will be possible to kill a player when in a area you want to kill.

but impossible to explosion.
 but kinda possible

by adding a vehicle underground of area.
and set a timer loop for it destroying again and again to set explosion!
Nice Bump. It is july
Title: Re: How to set an explosion and area ?
Post by: mrockxkingbutt on April 04, 2014, 10:29:22 am
I want the function of explosion for script and how to set an area when somebody come in it will send client message , i want to know the function, who can tell me ?

it will be possible to kill a player when in a area you want to kill.

but impossible to explosion.
 but kinda possible

by adding a vehicle underground of area.
and set a timer loop for it destroying again and again to set explosion!
Nice Bump. It is july
no april. fool