SuperCroz

Members
  • Content count

    258
  • Joined

  • Last visited

Community Reputation

18 Decent

4 Followers

About SuperCroz

  • Rank
    Red-Headed Stepchild
  • Birthday 20/07/98

Details

  • Gang
    RGS
  • Location
    Israel, I'billin.
  • Occupation
    Rage Gaming Society Developer
  • Interests
    Scripting, Mapping, Designing!

Recent Profile Visitors

713 profile views
  1. Remaining Time

    An easy way, set the player's account data as 'vip' into true and at the same time set a timer to set the player's account data as 'vip' into false. This will only work properly if the resource doesn't get restarted (due to server restart or resource restart) so timers will still exist. Other way, which is simple and easy but harder than the first is to set the 'vip' data as a number which presents the time of seconds he has as a vip and set a timer to reduce the 'vip' data value by 1 every second, and whenever the value is higher than 0, the player can use the vip, no otherwise. (As long as the account data 'vip' doesn't get touched, this will work perfectly even when server crashs or something)
  2. Auto Respawn

    Just don't use executeCommandHandler and use addCommandHandler to work on your respawn function. We can't give further help since we don't know what you asking for and how does your function work and if it even exists. According to your replys I am starting to believe that you think that the command 'respawnall' which you used somewhere else other than in your server is some sort of global MTA hardcoded function which is not. To use that command, you should have a function that actually respawns, connected to the command you wish.
  3. If chat imput active, dxDrawTextOnElement?

    I have not taken a look at your code but a very simple way to do this trick is by that; addEventHandler("onClientRender",root,function() if getElementData(localPlayer,"typing") == true then -- dxDraw..... -- anything else you want end end) -- now this way the image (if you are using image) or the text will be only showing when the player has the 'typing' data, otherwise nothing would be shown. -- all you have to do is to detect whenever a player is typing and whenever he is not and change his data according to that.
  4. Auto Respawn

    Idk what is that. But if dimos is true then, just define thePlayer through using addCommandHandler. (first parameter is the player that commanded.)
  5. Object texture/shader

    @UnchiuDawg using the function engineApplyShaderToWorldTexture has an argument that allows you to change the texture of a particular object eith the shader without the need to replace the textures of all the other objects that share the same original texture. Anyway, I mentioned that just to let you know, eventho that might not help a lot since it is a lighting issue.
  6. dxDrawTextOnElement, dxDrawRectangle3D

    The rectangle's alpha is set to 0. dxDrawRectangle3D (x, y, z+, width, hight, tocolor(255, 0, 0, 0)) change the tocolor arg into this; tocolor(255,0,0,255).
  7. [HELP] Chunk has too many syntax levels

    Well, use one function and one var which will be the dx text's text and set a hundered timers which change the var value, that is easier I think. Something like that; local local var = "" addEvenHandler("...",root,function() dxDrawText(var,sx,sy,w,h...) end) setTimer(function() var = "One word" end,6000,1) -- you can make one timer too if u use tables, but since you dont use them just make a hundered timer.
  8. Spawn points

    Adding spawn points will be through adding more spawns in the main table. Could you present the way you add more spawns into the table so we can know if you doing it right?
  9. I need help.

    Stack overflaw because you called spawnVehicle function within your re-defined spawnVehicle function, this will cause the function to be called infinite times and cause a stack overflaw.
  10. help with a hidden marker

    Why not، this var determines the size doesn't. Gonna test it later anyway. Idk maybe u r right.
  11. help with a hidden marker

    local radius = 1 local MySphere = createColSphere(x,y,z,radius) -- make sure to replace x,y & z with numbers. function changeMySphereSize(size) radius = size end -- it is dump to create a whole function for that, but it can be useful if you want to fill in more arguments. -- other than that you can simply change 'radius' value. What do you mean? Why not?
  12. Vehicle Car

    -- something like that maybe. for i = 1, #Cars do local vehicle = Cars[i] local occupants = getVehicleOccupants(vehicle) if #occupants == 0 then destroyElement(vehicle) end end
  13. help with a hidden marker

    Changing a colshape's size is pretty easy. You will just need to set the shape size at the creation as 'x' which should be globally defined as a number at first, and then create a function that modify x's value which will lead to change the colshapes' size.
  14. ColCircle and showCol. Question

    I edited dxDrawCircle (useful function by @Socialz) to make it work in 3D. Doesn't really need alot of work, try it your self and tell us what you end up with.
  15. [HELP]block vehicle.txd

    There is a function that blocks players from joining your server if they got a modded gta which I could not find but it is somewhere in the wiki. Or use engineRestoreModel(id) but I am not sure if that restores to the GTA original model or default model (default can be modified but it is still a default since it is included in your GTA)