Jump to content

Xwad

Members
  • Posts

    1,089
  • Joined

  • Last visited

Everything posted by Xwad

  1. Xwad

    ammo

    i only get ammo for the m4:(
  2. Xwad

    ammo

    how can i set for each weapon the ammo when i get in the vehicle? becaouse i want to make that if i have ak47 and rpg and enter the vehicle then i will get 200 ammo for ak47 but for rpg only 2. how can i make that? thanks.
  3. Xwad

    Trip mine script

    WTF not working!! no debugscript nothing i dont know whats the problem!! pls help. Is it server side??
  4. please help OMG i must try out this gamemode!!(((
  5. Xwad

    Trip mine script

    i enabled and its not working:(( But can i not set the width and the height for the colosphere?
  6. Xwad

    Trip mine script

    the command is not working. But how can i set the height and the width??
  7. this is on line 393 addEventHandler ("onClientPlayerWasted", getLocalPlayer(), function (attacker, weapon, bodypart) if status == true then status = false triggerServerEvent ("detachPatriot", getLocalPlayer(), target) end guiSetVisible (mechanicForm, false) end)
  8. Xwad

    Trip mine script

    its not working only the createObject and no debugscript.
  9. Xwad

    Trip mine script

    not working:/ bad argumentum @ 'addEventHandler' [Expected element at argument 2, got nil]
  10. only one debugscript: Maybe need i put it in gamemodes folder? WARNING: Battlefield1942\specialevents.lua:393: Bad argument @ 'quiSetVisible' [Expected gui-element at argument 1,got nil] please help i want to try out this gamemode:(
  11. Xwad

    Trip mine script

    i made it but only the createObject is working:/ function Mine(thePlayer, matchingDimension) createColSphere ( -1467, -1467, 99.15, 1 ) local pX, pY, pZ = getElementPosition ( source ) -- get the player's position createExplosion ( pX, pY, pZ, 6, source ) -- and create an explosion there outputChatBox("You stepped on a Mine!",thePlayer,255,109 ,109 ) -- outputs a chatbox end addEventHandler("onColShapeHit",root,Mine) function Object ( name ) createObject ( 1211, -1467.2827, -1287.6701, 99.15, 0, 0, 0 ) -- this creates an object end addEventHandler ( "onResourceStart", resourceRoot, Object )
  12. Xwad

    Trip mine script

    Thanks:D I will make it tomorow. One question: if I make a colsphere then wil the players see it on the map?
  13. Hi is it possible to make a script that will make an explosion when a player hit an object? becaouse i will make a trip mine. Thanks.
  14. Hi i downloaded a gamemode and put it in gameplay folder but when i wanted to start it nothing happens and when i reconnect the the screen was black please help!! https://community.multitheftauto.com/in ... ails&id=33
  15. it gives the armor now but it's bugging. It gives the armor higgledy-piggledy. I mean i choose heavy class and i get an armor but hen i die and choose another class i will get the armor again:/ Sometimes it does not give the armor when i choose class heavy:( maybe need i edit the spawn script? this is the spawn script https://community.multitheftauto.com/?p= ... ls&id=1152
  16. Hi please help i made a script that makes possible that when a player spawn in class Heavy then he will get Armor. Its not working.. Debugscript: WARNING: heavy/server.lua:2: Bad argumentum @ getElementData' [Expected element at argument 1,got nil] Server.lua function givePlayerArmor ( player ) if getElementData(localPlayer,"Class") == "Heavy" then setPedArmor ( player, 100 ) end end addEventHandler ("onPlayerSpawn", getRootElement(), givePlayerArmor )
  17. You mean need i trigger the client event for setelementHealth?
  18. Xwad

    ammo

    yeah its working thanks:D
  19. Xwad

    ammo

    But it's working. the local weapon is not working. I mean that it will give only the weapon I already have.
  20. Xwad

    ammo

    What do you mean with returning false?
  21. Xwad

    crash

    wait its crashing again!! maybe becaouse i added the s.w.a.t. vehicle to the vreload script?
  22. Xwad

    HUD

    but this code must work! but its not:/ addEventHandler("onClientPlayerSpawn", getRootElement(), function() showPlayerHudComponent("all", false) end)
  23. Xwad

    ammo

    this but its noot good i tryed to make it but i can't this is too high level for me.. function giveAmmo ( theVehicle, seat ) if (getElementModel(theVehicle) == 433) then giveWeapon ( source, localWeapon, 200 ) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), giveAmmo )
  24. Xwad

    ammo

    i tryed to make it but its not working
×
×
  • Create New...