Player & Car remains (Dead body & Wreckage) -
Correlli - 05.05.2015
What is this?
It's a simple filterscript which leaves a dead body (actor) when player dies and object wreckage when car "dies" (respawns). The time of the remains is 2 minutes before it's automatically destroyed (you can change it to different time in the filterscript).
Credits:
-
Incognito for
streamer plugin,
-
****** for
foreach/iterator include.
Make sure to download the streamer plugin.
Pictures:
Definitions:
There is one definition in the filterscript which should concern you:
This definition obviously tells the script how many remains are allowed to be created.
Download:
PWN file:
AMX file:
Re: Player & Car remains (Dead body & Wreckage) -
Admigo - 05.05.2015
Great use of new the actors. Good job.
Re: Player & Car remains (Dead body & Wreckage) -
Smileys - 05.05.2015
This is actually pretty unique, I like it :3
though for the car thing, what if your infernus explodes and turns into a yellow wrecked pickup truck? xd
Nice job tho!
Re: Player & Car remains (Dead body & Wreckage) -
Correlli - 05.05.2015
Quote:
Originally Posted by Smileys
though for the car thing, what if your infernus explodes and turns into a yellow wrecked pickup truck? xd
|
I know, not really the best object for it, this one resembles Walton if I'm not mistaken.
Re: Player & Car remains (Dead body & Wreckage) -
036 - 05.05.2015
Good idea, I'll have to make a body system too so you can pick it up, drop it, store it in the trunk or hide it in the forest or ambulance to put it in a grave something like that.
Re: Player & Car remains (Dead body & Wreckage) -
hamzajaved780 - 05.05.2015
Quote:
Originally Posted by 036
Good idea, I'll have to make a body system too so you can pick it up, drop it, store it in the trunk or hide it in the forest or ambulance to put it in a grave something like that.
|
That is a great idea looking forward to that.
Re: Player & Car remains (Dead body & Wreckage) -
Pottus - 05.05.2015
I would change this to an include instead let the user handle the implementation of when to create dead bodies.
Re: Player & Car remains (Dead body & Wreckage) -
eluvian - 07.05.2015
THe car, nor the player do not "remain" after death/destruction. How can I fix that?
Re: Player & Car remains (Dead body & Wreckage) -
matthew155 - 07.05.2015
It's a very creative filterscript.
Good idea, congratulations!
Re: Player & Car remains (Dead body & Wreckage) -
Correlli - 08.05.2015
Quote:
Originally Posted by eluvian
THe car, nor the player do not "remain" after death/destruction. How can I fix that?
|
It works just fine, make sure you did everything correctly.
Quote:
Originally Posted by eluvian
What are the requirements to make this FS work?
|
0.3.7 version of SA-MP, foreach, plugin streamer.
Quote:
Originally Posted by eluvian
I have these errors:
error 017: undefined symbol "CreateActor"
error 017: undefined symbol "SetActorVirtualWorld"
error 017: undefined symbol "SetActorHealth"
error 017: undefined symbol "IsValidActor"
error 017: undefined symbol "DestroyActor"
|
Update your files to version 0.3.7.
Quote:
Originally Posted by MOSensei
Uhmmm, error?
Code:
\Server\Server\filterscripts\remain.pwn(22) : error 001: expected token: "-identifier-", but found "("
\Server\Server\filterscripts\remain.pwn(42) : error 017: undefined symbol "YSI_gRemainsS"
\Server\Server\filterscripts\remain.pwn(42) : error 017: undefined symbol "YSI_gRemainsA"
\Server\Server\filterscripts\remain.pwn(42) : warning 215: expression has no effect
\Server\Server\filterscripts\remain.pwn(42) : error 001: expected token: ";", but found "]"
\Server\Server\filterscripts\remain.pwn(42) : fatal error 107: too many error messages on one line
|
Update your foreach include and don't make any changes in the filterscript on your own if you don't know how it works.