OnPlayerShootObject (+REP)
#4

Quote:
Originally Posted by Wizzard2H
Посмотреть сообщение
There's a tutorial which is very well explained about OnPlayerShootObject , search for it.
I can't find it that's why i opened a thread about it


Quote:
Originally Posted by povargek
Посмотреть сообщение
Код:
stock OnPlayerShootObject(playerid, objectid, playerobject)
{
//code
	return 1;
}
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	if(hittype == BULLET_HIT_TYPE_OBJECT || hittype == BULLET_HIT_TYPE_PLAYER_OBJECT)
	{
		OnPlayerShootObject(playerid, hitid, hittype == BULLET_HIT_TYPE_PLAYER_OBJECT ? 1 : 0); // you can desync shoot with return 
	}
	
	return 1;
}
Or you can create a filterscript and use a CallRemoteFunticon

UPD: And Streamer plugin can detect a shoot to dynamic object's (OnPlayerShootDynamicObject)
ye but i need the code bro... it doesn't help me you just gave me a blank script. i need the code that supposed to be inside of the stock.
Reply


Messages In This Thread
OnPlayerShootObject (+REP) - by Lirbo - 26.04.2016, 17:21
Re: OnPlayerShootObject (+REP) - by povargek - 26.04.2016, 17:27
Re: OnPlayerShootObject (+REP) - by Crystallize - 26.04.2016, 17:31
Re: OnPlayerShootObject (+REP) - by Lirbo - 26.04.2016, 17:35
Re: OnPlayerShootObject (+REP) - by Lirbo - 26.04.2016, 20:30
Re: OnPlayerShootObject (+REP) - by GangstaSunny - 27.04.2016, 02:42
Re: OnPlayerShootObject (+REP) - by CalvinC - 27.04.2016, 03:49
Re: OnPlayerShootObject (+REP) - by Lirbo - 27.04.2016, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)