Jump to content

how i know script for client or server


Recommended Posts

Posted

hi i have a Question how i know the lua script for client or for server said

i mean when i get some script from wiki and i dont know the script client or server when i put in meta.xml

i dont know if this script for client and i dont know the script for the server

how i know it :roll:

and i have this script i dont know this for server said or client said

  
function player_Wasted ( ammo, attacker, weapon, bodypart ) 
if ( attacker ) then 
local tempString 
if ( getElementType ( attacker ) == "player" ) then 
tempString = getPlayerName ( attacker ).." killed "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")" 
elseif ( getElementType ( attacker ) == "vehicle" ) then 
local tempString = getPlayerName ( getVehicleController ( attacker ) ).." killed "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")" 
end 
if ( bodypart == 9 ) then 
tempString = tempString.." (HEADSHOT!)" 
else 
  
tempString = tempString.." ("..getBodyPartName ( bodypart )..")" 
        end 
outputChatBox ( tempString ) 
  
else 
  
outputChatBox ( getPlayerName ( source ).." died. ("..getWeaponNameFromID ( weapon )..") ("..getBodyPartName ( bodypart )..")" ) 
  
  
end 
end 
addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) 
  
  
  
  
  

client or server :roll: and how i know if the script client or server :roll:

http://mojrm511.x10.mx

msn:

[email protected]

my server ip:

176.9.40.71:22779

-------------------------------------- 2012 updated--------

Posted

That script is server-side.

P.S: You can know if it's server or client because of the example color (when is client side, it'll be RED, else yellow).

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.

  • MTA Team
Posted

And use

 [xml][/xml]
  

tags. or use:

[/code]

--Meh there should be [noparse]and [/noparse]

 [code=lua]--lots of shit here too!
Posted

you are just want copy and past wiki example? and put it on meta ?

the wiki example some time not work because it's just example :lol:

CiTLh.png

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