Jump to content

Function to delete ped of spawnplayer?


DarkLink

Recommended Posts

Okay so I am using spawnplayer to really spawn the players, actually it makes a ped for each player and spawn him at x,y,z coordinates right?

Okay now I want to delete all the peds associated to the players, you see?

How can I do that?

Wanna delete all the peds that were created using spawnplayer, did u understand guys?

Thanks alot.

Link to comment

Yes, but look after I spawn a player I cant revert that situation?

When you enter a server if spawnplayer its not called, you will just see black and there wont be any ped of him, even if camera is target to that player ..

So what I want is to go back, revert what spawnplayer function did

I think I explained better now :)

It must be a way to do this.

Thanks guys.

Link to comment
I don't think there is, but you can do it using those functions:
killPed 
fadeCamera 
setCameraMatrix 
setCameraTarget 
setElementAlpha 

Ye thanks alot jacob, made it work with setCameraMatrix then killPed :)

And fadeCamera too , makes better visual hehe

Thanks!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...