Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[TUT] Player Spawn random sets

Skilled Illusionist
Joined
Nov 27, 2018
Messages
335
Reaction score
65
This script will respawn a player as 1 of 4 themed characters.
1. Gorka
2. Police
3. Medic (lighh blue)
4. Prison

ES3N1N - [TUT] Player Spawn random sets - RaGEZONE Forums
ES3N1N - [TUT] Player Spawn random sets - RaGEZONE Forums


if you want to add a new set. create class "case 5 or 6 or 7" and "break;"
Example:
case 4:
// TODO:
break;

How to add weapons?

class to add weapons - player.GetHumanInventory().CreateInHands
"CreateInHands"
handing out to the player...

case 0:

// Clothing
itemEnt = player.GetInventory().CreateInInventory("PolicePants");
itemEnt = player.GetInventory().CreateInInventory("PoliceJacket");
itemEnt = player.GetInventory().CreateInInventory("CombatBoots_Black");
itemEnt = player.GetInventory().CreateInInventory("OfficerHat");

// Ammo
itemEnt = player.GetInventory().CreateInInventory("Mag_CZ61_20Rnd");

// Weapon
itemEnt = player.GetHumanInventory().CreateInHands("CZ61");
break;

Good Luck!
 
Back
Top