Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: =RK=MarineForce on May 6th, 2019, 01:04 PM

Title: hi back
Post by: =RK=MarineForce on May 6th, 2019, 01:04 PM
Function On Player Fire:

Or

Function On Player Fire Stops:

can u gib me those functions?
Title: Re: hi back
Post by: Athanatos on May 6th, 2019, 02:06 PM
Quote from =RK=MarineForce on May 6th, 01:04 PM
Function On Player Fire:

Or

Function On Player Fire Stops:

can u gib me those functions?
Create the fire using a timer and create explosion, and you can do the rest.
Title: Re: hi back
Post by: =RK=MarineForce on May 9th, 2019, 09:06 AM
No Bro

i just need those functions i can't see it in Wiki vcmp.

i had this functions in my server . but i can't see it.

Plese can u give?

not working...

Function OnPlayerFire(player,Weapon.Fire)

This doesn't works

Function OnPlayerStopFire(player,Fire,Weapon)
Title: Re: hi back
Post by: Athanatos on May 9th, 2019, 06:24 PM
When a player shoots an entity? The event is in the client-side scripts.
Title: Re: hi back
Post by: =RK=MarineForce on May 9th, 2019, 09:51 PM
when players is on shooting he will be visible in radar and when he stops shoting he will be unvisible
Title: Re: hi back
Post by: Sonmez on June 1st, 2019, 08:14 AM
Quote from =RK=MarineForce on May 6th, 01:04 PM
Function On Player Fire:

Or

Function On Player Fire Stops:

can u gib me those functions?
You can use,
Code: [Select]
function onPlayerActionChange( player, oldAction, newAction )
{
if ( newAction == 16 ) // 16 is the id of firing/shooting action.
{
 }
}

or in client side, you can use this,
Code: [Select]
function Player::PlayerShoot(player, weapon, hitEntity, hitPosition)

{

Console.Print( player.ID + " Attacking. weapon "+weapon+"" );

}
It can be more stable than onPlayerActionChange
Title: Re: hi back
Post by: Gabriel_Stories on June 1st, 2019, 12:40 PM
LOL