Posts: 1,208
Threads: 36
Joined: Apr 2015
Is possible to send bullet without senderid, instead provide x, y, z space from which it is shot.
Current effects for:
PHP код:
SendBulletData(senderid, forplayerid = -1, weaponid, hittype, hitid, Float:fHitOriginX, Float:fHitOriginY, Float:fHitOriginZ, Float:fHitTargetX, Float:fHitTargetY, Float:fHitTargetZ, Float:fCenterOfHitX, Float:fCenterOfHitY, Float:fCenterOfHitZ);
https://www.youtube.com/watch?v=4Re6HJMzu_4
Posts: 913
Threads: 70
Joined: Apr 2009
Reputation:
0
"Is possible to send bullet without senderid"
AFAIK, no.
Posts: 2,938
Threads: 162
Joined: May 2010
If I load YSF, just for SendBulletData. YSF won't be doing much underlying work or anything right?
All I want is SendBulletData.
Posts: 1,659
Threads: 17
Joined: Sep 2008
Quote:
Originally Posted by Kar
If I load YSF, just for SendBulletData. YSF won't be doing much underlying work or anything right?
All I want is SendBulletData.
|
If you use FCNPC, you can use FCNPC_TriggerWeaponShot.
Posts: 2,938
Threads: 162
Joined: May 2010
Quote:
Originally Posted by ZiGGi
If you use FCNPC, you can use FCNPC_TriggerWeaponShot.
|
True, I want it for players so I didn't think about that, I didnt think to check the code to see if it works for players too. Thanks.
Posts: 1,659
Threads: 17
Joined: Sep 2008
Quote:
Originally Posted by Kar
True, I want it for players so I didn't think about that, I didnt think to check the code to see if it works for players too. Thanks.
|
Ahh, this is not working for players, sorry.
Posts: 8
Threads: 1
Joined: Jan 2014
Reputation:
0
- Added execute(command[]) which allow you to execute commands from the SA-MP server
Does it work on Linux?
Posts: 513
Threads: 4
Joined: Jun 2015
Reputation:
0
Rebuild YSF on your linux machine.
Posts: 760
Threads: 22
Joined: May 2011
Reputation:
0
Hello!
I noticed that after installing this plugin GameModeExit() doesn't work anymore, it makes my SA-MP server (console) crash. I attempted the functions you have created then, SetModeRestartTime() but it seems that all it does is freeze the players' camera.
I've tested to remove SetModeRestartTime() from the .inc file but I'm not sure why I even tested that as it's in the .dll file. I tried to find the solution myself in scripting.cpp but let's not pretend like I'm an expert on C++, I freaking hate it. xD
Tell me if I might be doing something wrong please.
Posts: 913
Threads: 70
Joined: Apr 2009
Reputation:
0
I'll look after, but now I'm very busy with irl things..
Posts: 760
Threads: 22
Joined: May 2011
Reputation:
0
Sure thing, cheers, no hurries!
Posts: 1,208
Threads: 36
Joined: Apr 2015
This function not working correctly variable "animname" always is null. Another values is wrong.
PHP код:
native GetActorAnimation(actorid, animlib[], animlibsize = sizeof(animlib), animname[], animnamesize = sizeof(animname), &Float:fDelta, &loop, &lockx, &locky, &freeze, &time);
http://i.imgur.com/U6w91UH.png
PHP код:
ApplyActorAnimation(Actor[i],"DANCING","DAN_Loop_A",4.0,1,0,0,0,0);