Whats up everyone i jus wanted to know some cool network mods such as how do i teleport all players to me and give them weapons and take their weapons. and how will i be able to see their gamertag to give them weapons
Printable View
Whats up everyone i jus wanted to know some cool network mods such as how do i teleport all players to me and give them weapons and take their weapons. and how will i be able to see their gamertag to give them weapons
teleport all players to you is the only thing that requires control of network id's. It all requires a for loop from 0 to 15, use IS_NETWORK_PLAYER_ACTIVE, and check to make sure the player ID isnt the same as yours, then GET_PLAYER_CHAR then you can do stuff to them, to make a player menu where you can select which player is alot more confusing to make and i would be able help you
If you have a look at the source of either brians or muskels chat source it will show you what is required to gather the active players in a game. Don't forget though that you can only directly control a vehicle or object, it won't work with players on foot, and no you can't attach an object to a player then set the object coord lol :) yes I did once stupidly try that in one of my brain fart moments.
what if you use attach object physically then set players collision to false..?
Ohh yea but say if i want to teleport all players to me that are in the car how would i be able to do it i seen muskels and he has it so u could teleport one player at a time to u
to attach objects physically you need control over both objects/peds/cars, and as the problem still remains players have network control over their ped then you cant take control meaning you couldnt attach object physically and you couldnt set their collision to false