Jump to content

how i know script for client or server


Recommended Posts

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:

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