Jump to content

MTA:SA Scripting Heaven (Website)


GerardWay

Recommended Posts

Hey All! Ive just finished creating a website for my basic scripts, and I know that scripters find them easy to make, but these scripts are for people who dont know how to script. If you want to buy a script, then click the Redirection Link on the forum, enter the script price and then pay it to my Paypal (My paypal automatically appears when you click the redirection link).

PAYPAL OR CREDIT/DEBIT CARD REQUIRED TO PAY!

After paying for a script, Add me on Skype: teambarrelgaming

or Facebook: http://www.facebook.com/newcastlepolice

And send me a message with the:

Resource/Script Name you bought

How much you paid

Proof of purchase

Thank you.

http://www.mtaheaven.tk

Link to comment

Hehe, 25 cents for one blip...

Blip system: SERVER

local blips = { 
    [1]={ id=13, pos={0, 0, 3} }, -- Creates a pink 'C' in the middle of SA 
    [2]={ id=13, pos={100, 0, 3} } -- Creates another pink 'C' somewhere near the middle of SA 
} 
  
addEventHandler('onResourceStart', resourceRoot, 
function() 
    for i = 1, #blips do 
        local x, y, z = unpack(blips[i].pos) 
        local id = blips[i].id 
        local blip = createBlip(x, y, z, id, 2, 255, 255, 255, 255, 0, 99999.0, root) 
    end 
end) 

Skin replacement: CLIENT

local skins = { 
    [1]={ file='skins/7.txd', replaceID=7 }, 
    [2]={ file='skins/11.txd', replaceID=11 }, 
    [3]={ file='skins/47.txd', replaceID=47 }, 
    [4]={ file='skins/37.txd', replaceID=37 }, 
    [5]={ file='skins/18.txd', replaceID=18 } 
} 
  
addEventHandler('onClientResourceStart', resourceRoot, 
function() 
    for i = 1, #skins do 
        local txd = engineLoadTXD(skins[i].file) 
        engineImportTXD(txd, skins[i].replaceID) 
    end 
end) 

Ban system: SERVER

addCommandHandler('pban', 
function(player, cmd, target, reason) 
    if not target or not reason then outputChatBox('SYNTAX: /'..cmd..' ', player, 240, 0, 0, false) return false end 
     
    local acc = getPlayerAccount(player) 
    if isGuestAccount(acc) then return false end 
    if isObjectInACLGroup ("user."..getAccountName(acc), aclGetGroup ("Admin")) then 
        local target = getPlayerFromName(target) 
        if target then 
            banPlayer(target, false, false, true, player, reason, 0) 
        else 
            outputChatBox('Player not found, it might be because this script sucks and is made under 2 minutes and requires improvement.', player, 240, 0, 0, false) 
        end 
    end 
end) 

Edited by Guest
Link to comment

Suicide Script: SERVER

addCommandHandler("kill",  
    function(player)  
        killPlayer(player)  
    end 
) 

Ped Script: CLIENT/SERVER

local cx, cy, cz = 0, 0, 0 
addCommandHandler("cped",  
    function(modelID, x, y, z)  
        local id = tonumber(modelID) or 0 
        local xx, yy, zz = tonumber(x, y, z) or cx, cy, cz 
        createPed(id, xx, yy, zz)  
    end 
) 

Money Script: SERVER

  
local defaultAmount = 1000 
addCommandHandler("mgive",  
    function(player, amount)  
        local accName = getAccountName(getPlayerAccount(player)) 
        local defaultMoneyAmount = tonumber(amount) or defaultAmount 
        if not accName then 
            outputChatBox("Fucking log-in yourself!", player, 255, 0, 0) 
        else 
            if isObjectInACLGroup ("user."..accName, aclGetGroup ("Admin")) then     
              for _, v in pairs(getElementsByType("player")) do  
                    givePlayerMoney(v, defaultMoneyAmount) 
                end 
            else 
                outputChatBox("You have no rights to use this command and therefore - screw you.", player, 255, 0, 0) 
            end 
        end 
    end 
) 

Headless Script: CLIENT/SERVER

addCommandHandler("headless",  
    function(player)  
        setPedHeadless(player, not isPedHeadless(localPlayer))  
    end 
) 

PayDay Script: CLIENT/SERVER

local defaultTime, defaultMoney = 86400000, 100000 
setTimer( 
    function() 
        for _, v in pairs(getElementsByType("player")) do 
            givePlayerMoney(v, defaultMoney) 
        end 
    end,  
    defaultTime, 0 
) 

Chatbox Messages: CLIENT

addCommandHandler("output",  
    function() 
        outputChatBox("Welcome to my shitty server, have a great fucking day!", getLocalPlayer(), 0, 255, 0) 
    end 
) 

Edited by Guest
Link to comment
Seriously, who would pay for that? You can ask in the scripting section and someone will just provide it.

No they won't, they'll respond saying something similar like: 'This is not a request forum, script your own shit first. And if there happen to be any errors, we'll help you further'

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...