Jump to content

GamerDeMTA

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by GamerDeMTA

  1. This function, getWeaponAmmo I have something wrong... I put the ID of the weapon like this but it gives error, expected weappon argument 2 got number '38'. getWeaponAmmo ( 38 ) https://wiki.multitheftauto.com/wiki/getWeaponAmmo
  2. Ya lo se pero a lo mejor alguno de ustedes sabe
  3. Hola, tengo un foro que usa phpBB y me preguntaba como reemplazar el tag SPOILER (el que tiene mi foro es feo) por uno mejor, como el de este foro por ejemplo. Tambíen como añadir más tags, y eso...
  4. no one?= what i mean is how to forbid the zombies in LS. I think I can do it with activating only spawn zombies by spawnpoint and placing spawns in LV and SF, but that will take a while. isn't there any way to do it easier? like an area like which I had posted above, but it works? because see, what happens now, they get killed but...:
  5. Hi, I downloaded and installed in my server a resource from Kenix, of the community. it doesn't works properly. it kills the zombies, but they spawn in the greenzone and they get killed there. what i want is, that they can't even spawn and come to the greenzone. Because it's ugly to see some zombies diyng when i am in the greenzone, and then they're dead in the floor for 5 seconds or so. CLIENT addEventHandler( 'onClientPlayerDamage', localPlayer, function( ) if getElementData( localPlayer, 'damage' ) == 'no' then cancelEvent( ) end end ) SERVER -- Advanced Anti Zombie by Kenix version 1.0.6 --[[ It's example how use it. Change this ]] local aSavePlaces = { Rectangle = { -- X, Y, Width, Height { x,y, 2000, 2000}; { x,y, 2000, 2000}; } } local aRadarAreaPlaces = { -- x, y ,size 1, size 2, color: red, green, blue, alpha. { x,y, 2000, 2000, 0, 255, 0, 255 } ; {x,y, 2000, 2000, 0, 255, 0, 255 } ; } local sResourceName = getResourceName ( resource ) local bUseGunsInSavePlace = get( sResourceName .. '.UseGunsInSaveZone' ) local bUseRadarArea = get( sResourceName .. '.UseRadarArea' ) local pColshape, pRadarArea local bUseRunInSaveZone = get( sResourceName .. '.UseRunInSaveZone' ) local bUseJumpInSaveZone = get( sResourceName .. '.UseJumpInSaveZone' ) local bUseWeaponHudInSaveZone = get( sResourceName .. '.UseWeaponHudInSaveZone' ) local bUseAmmoHudInSaveZone = get( sResourceName .. '.UseAmmoHudInSaveZone' ) local bUseDamageInSaveZone = get( sResourceName .. '.UseDamageInSaveZone' ) addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for s, _ in pairs( aSavePlaces ) do for _, a in pairs( aSavePlaces[ s ] ) do pColshape = _G[ 'createCol' .. s ]( unpack( a ) ) setElementData( pColshape, 'zombieProof', true ) addEventHandler ( 'onColShapeHit', pColshape, function ( pHitElement ) if getElementType( pHitElement ) == 'player' then if not bUseGunsInSavePlace then toggleControl ( pHitElement, 'fire', false ) toggleControl ( pHitElement, 'aim_weapon', false ) toggleControl ( pHitElement, 'vehicle_fire', false ) end if not bUseRunInSaveZone then toggleControl ( pHitElement, 'sprint', false ) end if not bUseJumpInSaveZone then toggleControl ( pHitElement, 'jump', false ) end if not bUseWeaponHudInSaveZone then showPlayerHudComponent ( pHitElement, 'weapon', false ) end if not bUseAmmoHudInSaveZone then showPlayerHudComponent ( pHitElement, 'ammo', false ) end if not bUseDamageInSaveZone then setElementData( pHitElement, 'damage', 'no' ) end elseif getElementType( pHitElement ) == 'ped' then -- check if the entered ped kill it killPed( pHitElement ) -- kill ped end end ) addEventHandler ( 'onColShapeLeave', pColshape, function ( pLeaveElement ) if getElementType( pLeaveElement ) == 'player' then if not bUseGunsInSavePlace then toggleControl ( pLeaveElement, 'fire', true ) toggleControl ( pLeaveElement, 'aim_weapon', true ) toggleControl ( pLeaveElement, 'vehicle_fire', true ) end if not bUseRunInSaveZone then toggleControl ( pLeaveElement, 'sprint', true ) end if not bUseJumpInSaveZone then toggleControl ( pLeaveElement, 'jump', true ) end if not bUseWeaponHudInSaveZone then showPlayerHudComponent ( pLeaveElement, 'weapon', true ) end if not bUseAmmoHudInSaveZone then showPlayerHudComponent ( pLeaveElement, 'ammo', true ) end if not bUseDamageInSaveZone then setElementData( pLeaveElement, 'damage', 'yes' ) end elseif getElementType( pLeaveElement ) == 'ped' then -- check if the entered ped kill it killPed( pLeaveElement ) -- kill ped end end ) end end if bUseRadarArea then for _, a in ipairs( aRadarAreaPlaces ) do pRadarArea = createRadarArea ( unpack( a ) ) end end end ) META "Kenix" description="Advanced Anti Zombie" version="1.0.6" type="script" /> Help me please
  6. it isnt posssible ??? if u didnt understand i mean, when u enter or u are in a team u don't need to have the team's color!
  7. I need to do this, that when a player is in a team or he joins, his nametagcolor doesn't change to the team's color! is it possible?
  8. well i just want to do it for 1 ped which i put:
  9. No I mean a ped which I create with createPed and the master i mean he doesn't receive damage
  10. and how to do it for a ped in a script?? invul
  11. Hey I need runcode for invul player, (crun) invul vehicle (crun) and I need to do a Ped Invul, for a script, how to?
  12. Hey there! I need good resources (and most common too,) for a RP server. can someone give me some pls? because in community i dont find nothing interesting (i already have them) ;/ edit::: sorryy i posted this in wrong section move itt too the right section pls
  13. Hey! I wanna do that when I use the UZI, there's no reload, I mean i dont need to reload it, how?
  14. and for do it only for 425 ID? D: that's too hard for me isn't there any resource or something
  15. Hey! I need some help, I want to destroy the vehicles which ID is 425 (HUNTER), it destroys if nobody uses it for 20 mins. how to? [but only Hunter!]
  16. I need the functions to change the CJ clothes.
  17. Pues yo tampoco se muy bien de que va pero en la pagina de descarga te sale download filezilla server only windows o download filezilla client
  18. Hola. Me recomiendan usar FileZilla para tener acceso FTP? Y me podrian recomendar y decir los programas que ustedes usan para ftp tambien? Ah, y cual es la diferencia entre Filezilla server y filezilla client? Gracias de antemano
  19. thanks a lot !!! it works! but can you say me how to do it for only a vehicle? for example ID 425?
  20. Doesn't work. I just want to do that he can't enter the vehicle if he isn't in the team 'xd'
  21. it doesn't work... now it let's me drive the vehicle.
×
×
  • Create New...