Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Settings for when a player joins
- -- XYZ coördinates
- local joinX = -168.2039642334
- local joinY = 1032.8564453125
- local joinZ = 19.734413146973
- -- Weapon and ammo
- local joinWeapon = 0
- local joinAmmo = 0
- -- Message when player joins
- local joinMessage = "Willkommen bei Adventure Roleplay"
- -- Skin that player gets
- local joinSkin = 295
- -- Settings for when a player dies
- -- XYZ coördinates
- local spawnX = -168.2039642334
- local spawnY = 1032.8564453125
- local spawnZ = 19.734413146973
- -- Weapon and ammo
- local spawnWeapon = 0
- local spawnAmmo = 0
- -- Skin that player gets
- local spawnSkin = 295
- -- Settings for the amounts of money
- -- Money the killer gets
- local killerMoney = 0
- -- Money removed from player when they die
- local deadPlayerMoney = 0
- -- Money you get when you join
- local joinMoney = 0
- -- Functions
- -- This function spawns players when they join
- function spawnOnJoin()
- spawnPlayer(source, -168.2039642334, 1032.8564453125, 19.734413146973, 0 , 295)
- fadeCamera(source, true)
- setCameraTarget(source, source)
- outputChatBox(joinMessage, source)
- giveWeapon(source, joinWeapon, joinAmmo)
- givePlayerMoney(source, joinMoney)
- end
- -- This function spawns players after they died
- function spawnOnDead(ammo, killer, weapon, bodypart)
- outputChatBox(getPlayerName(source).." died.")
- takePlayerMoney(source, deadPlayerMoney)
- if (killer) and (killer ~= source) then
- givePlayerMoney(killer, killerMoney)
- end
- setTimer(spawnPlayer, 3000, 1, source, 168.2039642334, 1032.8564453125, 19.734413146973, 0, 295)
- setCameraTarget(source, source)
- setTimer(giveWeapon, 3000, 1, source, spawnWeapon, spawnAmmo)
- end
- -- Event handlers
- addEventHandler("onPlayerJoin", getRootElement(), spawnOnJoin)
- addEventHandler("onPlayerWasted", getRootElement(), spawnOnDead)
Advertisement
Add Comment
Please, Sign In to add comment