One of the most important things of the scripting is the organiation. I would recommend you to use metatables and tables for a more readable script, it's just a way of OOP. The separation of resources depends on you, Personally I like to separe the resources by their functions.
What do you mean? Can you explain better yourself? Because what I can understand of you're problem is that you want to add the value to X with any command, that's why you need a global variable.
x = 0
function addf()
x = x + 1
end
addCommandHandler("add", addf)
I don't see future for this kind of people in scripting... He said he's a new scripter just to remain as a poor man waiting for someone who would be humble to make scripts free for him.
Ah is true, sry.
local unemployed = createTeam("Unemployed", 255, 255, 255)
function unemploy(source)
setPlayerTeam(source, unemployed)
end
addCommandHandler('leavejob', unemploy)
Why don't you use the player coordinates?
local distance = getDistanceBetweenPoints3D(x, y, z, worldX, worldY, worldZ)
to
local distance = getDistanceBetweenPoints3D(x, y, z, px, py, pz)
Gracias No!z3 por decirme tu opinión sobre el tema. Ya se que la comunidad hispana no es la "mejor" para llevar a cabo proyectos de roleplay a gran escala y la opción del multilenguaje es una bastante dificil de administrar pero sigue siendo una posible idea que se puede llevar a cabo. Agradezco que hayas expresado tu opinión, gracias.
Gracias por tu opinión, he llevado a cabo esta encuesta para saber los gustos de la comunidad hispana en cuanto a la zona de rol preferida. Liberty City llevaría a unos 100mb aproximadamente de descarga los cuales me parecen tampoco tanto ya que si se hace como se debe hacer el método de descarga todo ira bien. En cuanto a San Fierro, es una ciudad de la cual se puede exprimir al máximo para llevar a cabo un servidor de roleplay.