Jump to content

Help any one !


E-mail

Recommended Posts

Posted

Hi all iam makeing Glith script for BaseMode Players!

i have error in script

[ClientSide]

function xxx ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 

i want the Ped weapon Degal and 200 Amoo

[serverSide]

  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 
  

Posted

giveWeapon is only server side so,

server side:

function xxx ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function givePlayerWeapons ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

Posted

see

function givePlayerWeapons ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
  
    setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart  

?

Posted

The ) at the end of file.

Also WTH is

setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) 

function givePlayerWeapons ( thePlayer, commandName ) 
    giveWeapon ( thePlayer, 2, 200 ) 
end 
addCommandHandler ( "giveweapons", givePlayerWeapons ) 
  
function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

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...