Vice City: Multiplayer

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

Title: hi back
Post by: =RK=MarineForce on May 06, 2019, 12:04 PM
Function On Player Fire:

Or

Function On Player Fire Stops:

can u gib me those functions?
Title: Re: hi back
Post by: NicusorN5 on May 06, 2019, 01:06 PM
Quote from: =RK=MarineForce on May 06, 2019, 12:04 PMFunction 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 09, 2019, 08: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: NicusorN5 on May 09, 2019, 05: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 09, 2019, 08: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 Jun 01, 2019, 07:14 AM
Quote from: =RK=MarineForce on May 06, 2019, 12:04 PMFunction On Player Fire:

Or

Function On Player Fire Stops:

can u gib me those functions?



You can use,
function onPlayerActionChange( player, oldAction, newAction )
{
if ( newAction == 16 ) // 16 is the id of firing/shooting action.
{
 }
}

or in client side, you can use this,
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 Jun 01, 2019, 11:40 AM
LOL