Put Player In Boot - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Put Player In Boot (
/showthread.php?tid=646857)
Put Player In Boot -
BulletRaja - 25.12.2017
hello guys i need little help
how to make put player in boot cmd so i can put player in boot like eLg Clan's
/playerinboot [id]
how can i do that help me please
Re: Put Player In Boot -
Ritzy2K - 25.12.2017
Haven't seen eLg Clan's boot feature.
but you can start off with zcmd and sscanf.
check if the targetid is close to playerid and then put the player in boot. (Now, I'm not sure what are the features when player is forced in boot in eLg)
But I think, you can put an actor in the trunk and set the targetid to spectate the vehicle.
Re: Put Player In Boot -
BulletRaja - 25.12.2017
Quote:
Originally Posted by Ritzy
Haven't seen eLg Clan's boot feature.
but you can start off with zcmd and sscanf.
check if the targetid is close to playerid and then put the player in boot. (Now, I'm not sure what are the features when player is forced in boot in eLg)
But I think, you can put an actor in the trunk and set the targetid to spectate the vehicle.
|
hmm btw i need help by which code i can use on it to make it
EDIT: should i use CreateActor
in boot then i put the player on spect
Re: Put Player In Boot -
Ritzy2K - 25.12.2017
What do you mean?
Here's the zcmd library -
https://sampforum.blast.hk/showthread.php?tid=91354
Here's sscanf -
https://sampforum.blast.hk/showthread.php?tid=570927
Re: Put Player In Boot -
RogueDrifter - 25.12.2017
Quote:
Originally Posted by Ritzy
|
How would u put an actor in the boot? how will his position keep changing? i'm not sure but afaik it would be possible by spamming setplayerpos compared to the vehicle driver and applyanim. that's all i can think of.
Re: Put Player In Boot -
BulletRaja - 25.12.2017
Quote:
Originally Posted by RogueDrifter
How would u put an actor in the boot? how will his position keep changing? i'm not sure but afaik it would be possible by spamming setplayerpos compared to the vehicle driver and applyanim. that's all i can think of.
|
can u make code pls
Re: Put Player In Boot -
Ritzy2K - 25.12.2017
Quote:
Originally Posted by RogueDrifter
How would u put an actor in the boot? how will his position keep changing? i'm not sure but afaik it would be possible by spamming setplayerpos compared to the vehicle driver and applyanim. that's all i can think of.
|
Ehh or maybe attach some object? Like that cop which is tied up.
Re: Put Player In Boot -
Sew_Sumi - 25.12.2017
lol, just do what Ritzy suggested about spectating.
Have some 3DTextLabel or some shit highlighting that there is a player in there, and make sure you keep a track of those who are in the boot.
A good script to look at regarding this would be the old Enterable Shamal script, and the same with the trolley car in SF script.
Don't worry about having the actor in there just currently, figure that out later.
Re: Put Player In Boot -
RogueDrifter - 25.12.2017
Quote:
Originally Posted by Ritzy
Ehh or maybe attach some object? Like that cop which is tied up.
|
attaching an object works but yeah what sew said is easier for starters a 3dtextlabel attached to the vehicle while making the boot-ed player spectating hints enough that there's someone in there.