How to use the print function in lua?
Posted: Wed Jan 02, 2008 1:38 pm
I tried the following script to make players respawn in a vehicle and this works fine!
However, how can i make the print function to work?
However, how can i make the print function to work?
Code: Select all
OnCharacterSpawn(
function(player)
if GetObjectTeam(GetCharacterUnit(player)) == 2 then
print("Characters are on team 2")
EnterVehicle(player, "Vehspawn1")
end
end
)