Then the loop will end and you don't know if there is a president.
Use break instead:
addEvent("checkPresidentServer",true)
addEventHandler("checkPresidentServer",getRootElement(),
function ()
local presidentFound = false
for index, player in pairs(getElementsByType("player")) do
if getElementData(player,"president") == "True" then
triggerClientEvent(source,"setPresidentToFalse",getRootElement())
presidentFound = true
break
end
end
if not presidentFound then
triggerClientEvent(source,"setPresidentToTrue",getRootElement())
end
end)
The main resource folder (musicstream), but also extra folders that contain files that have been written in the meta.xml.
mods\deathmatch\resources\musicstream\[data]
Maybe also interested to know. (sorry that I go a little off the subject)
After convert to a text file, it multiply by 10X+ in size(vs jpg).
1000 x 1000 red pixels 3,81 MB
and of course it makes sense, it is raw data. But still it is funny because the biggest image format that I have ever seen is Canon camera raw format. This format comes close to that.
It is much better then fileDelete.
Only scripts are protected, other files like images/audio aren't protected this way.
The only way to protect images, is changing them to textures and delete them immediately.
Audio can't be protected, as simple as that.
You must be a really prof. if you can get the client files from the RAM.
You may not able to get the password, but the account is another story.
As long you don't give players runcode rights, nobody can use your account.
Password isn't the only thing that can get to player their accounts, cause a scripters with runcode can.
I changed my friends password on request, but I didn't knew his original password.
The best thing is removing runcode when you don't use it. To be honest I can do everything with runcode, ban/kick players, creating scripts or since 1.3 even images(jpg/png)!.
for your question from skype.
local sWidth,sHeight = guiGetScreenSize()
local halveSWidth = sWidth / 2
local halveSHeight = sHeight / 2
-- your gui size and position.
local guiSizeX,guiSizeY = sWidth *.25,sHeight *.25
local guiPosStartX = halveSWidth - (guiSizeX/2)
local guiPosStartY = halveSHeight - (guiSizeY/2)
BiiLLY +1
Well onVehicleStartEnter can be canceled, but you can also remove the player from the vehicle by using removePedFromVehicle after onVehicleEnter. It is just what you want.
It can, by changing the coordinates of the start and end.
You have the middle point, you create offset from there.
And you let the offset locations move around the middle point.
I hope you have learned to work with tables, because these are the one you need to manage for more then one icon.
At the moment your code is creating for every click a new event, that will start lagging and next to that it isn't manage able cause you can't stop it without turning off the script.
@ 6ArHxiMr'3a[Z]eF
This maybe?
Animation probably created by increasing the material line and changing the offZet.
local PosX= ...
local PosY= ...
local PosZ= ...
local offZetX1 = PosX+10
local offZetY1 = PosY+10
local offZetX2 = PosX-10
local offZetY2 = PosY-10
dxDrawMaterialLine3D ( offZetX1, offZetY1, PosZ, offZetX2,offZetY2, PosZ,material, 10)