Put Player In Boot
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

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
Reply
#5

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.
Reply
#6

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
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)