Solidsnake @ Please lock the topic.
I've found that this is edited and no credits to author. Its from community!
https://community.multitheftauto.com/in ... ls&id=6448
commands = {}
commands.engine = "setengine"
newcommands = {}
newcommands.engine = get ( "engine" ) or commands.engine
function pack(thePlayer)
local account = getPlayerAccount(thePlayer)
if (not account or isGuestAccount(account)) then return end
local accountName = getAccountName(account)
if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Everyone" ) ) ) then
--Player Data
setElementData(thePlayer,"blood",12000)
end
end
addCommandHandler(newcommands.engine, pack)
See, I told you worked on one thing full time.. I am not like that at all. 7-8 hours schools then H.W then exams studies then a bit of playing then a bit of scripting then -> sleep.
addEventHandler("onClientGUIClick", getRootElement(),
function ()
if source == paratransferi_buton1yazi then
local sel_1 = guiGridListGetSelectedItem(paratransferi_liste1)
local getMoneyToSend = guiGetText(paratransferi_yazmayeri1)
if sel_1 and getMoneyToSend then
local playerName = guiGridListGetItemData ( paratransferi_liste1, sel_1, 1 )
local player = getPlayerFromName(tostring(playerName))
if isElement(player) then
triggerServerEvent("paraGonder",localPlayer,player,getMoneyToSend)
putPlayers()
else
outputChatBox("Oyuncu Seçmelisin veya Boş Alanları Doldurmalısın",255,0,0)
end
end
end
end
)
client
Which line is that?
local ped = createPed(36,x, y, z, 90, true)
setPedFrozen(ped, true)
setTimer(setPedAnimation, 500, 0 , ped,"ped", "KO_shot_front", 1000, false, false, false, true)
Maybe this. It will keep going and set it again and again.
Did you ever save it?
if fileExists(country..".txt") then
local file = fileOpen(country..".txt")
fileWrite(file, "Name:"..name.." Serial:"..serial)
fileSave(file)
fileClose(file)
end
function displayVehicleLoss(loss)
if getVehicleOccupant(source) then
setElementHealth(source, getElementHealth(source)+loss)
end
end
addEventHandler("onVehicleDamage", getRootElement(), displayVehicleLoss)