دا كود صحيح ?
مع العلم انني خليت سكن رقم 33 لاسل كنسل
function outputOnLogin ( previous_account, current_account, auto_login )
outputConsole(getAccountName(previous_account).." Logged into "..getAccountName(current_account))
end
addEventHandler("onPlayerLogin",getRootElement(),outputOnLogin )
function setMoney(thePlayer,key,amount)
setPlayerMoney (thePlayer,amount)
local account = getPlayerAccount(thePlayer)
if account and tonumber(amount) then
setAccountData(account,"money",amount)
end
end
addCommandHandler("setmoney",setMoney)
addCommandHandler ( "jetpack",
function ( thePlayer )
if doesPedHaveJetPack ( thePlayer ) then
removePedJetPack ( thePlayer )
return
end
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then
if not doesPedHaveJetPack ( thePlayer ) then
givePedJetPack ( thePlayer )
end
end
end
)
addCommandHandler ( "changeveh",
function ( thePlayer, command, newModel )
local theVehicle = getPedOccupiedVehicle ( thePlayer )
newModel = 33 ( newModel )
if theVehicle and newModel then
setElementModel ( theVehicle, newModel )
end
end
)