Hallo,
Ich habe hier ein Script und ich möchte, dass man diese Funktion nur einmalig ausführen kann. Ich habe mich schon daran mehrmals versucht, doch nach geschlagenden 2Stunden gebe ich es nun auf und hoffe, dass ihr mir helfen könnt!
Lua
function SaySorry( playerSource )
local accName = getAccountName ( getPlayerAccount ( playerSource ) )
if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "Everyone" ) ) ) then
outputChatBox("We say Sorry for everything", playerSource, 16, 173, 235)
setElementData(playerSource, "MAX_Slots", 60)
setElementData(playerSource, "M4", 1)
setElementData(playerSource, "Assault Ammo", 500)
setElementData(playerSource, "Sniper Rifle", 1)
setElementData(playerSource, "GPS", 1)
setElementData(playerSource, "Toolbox", 1)
setElementData(playerSource, "Infrared Goggles", 1)
setElementData(playerSource, "Night Vision Goggles", 1)
setElementData(playerSource, "Watch", 1)
setElementData(playerSource, "Medic Kit", 1)
setElementData(playerSource, "Morphine", 1)
setElementData(playerSource, "Sniper Ammo", 100)
setElementData(playerSource, "Army Skin", 1)
setElementData(playerSource, "Bandage", 2)
end
setTimer(SaySorry, 9000000000, 0)
end
addCommandHandler("sorry",SaySorry)
Alles anzeigen
Danke!