Jump to content

Xwad

Members
  • Posts

    1,090
  • Joined

  • Last visited

Everything posted by Xwad

  1. Xwad

    Trip mine script

    Enargy its working! Thanks! And thanks for all answer thanks:D
  2. Xwad

    ammo

    i only get ammo for the m4:(
  3. 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.
  4. Xwad

    Trip mine script

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

    Trip mine script

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

    Trip mine script

    the command is not working. But how can i set the height and the width??
  8. 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)
  9. Xwad

    Trip mine script

    its not working only the createObject and no debugscript.
  10. and how can i fix it??
  11. Xwad

    Trip mine script

    not working:/ bad argumentum @ 'addEventHandler' [Expected element at argument 2, got nil]
  12. 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:(
  13. 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 )
  14. 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?
  15. 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.
  16. 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
  17. 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
  18. 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 )
  19. You mean need i trigger the client event for setelementHealth?
  20. Xwad

    ammo

    yeah its working thanks:D
  21. Xwad

    ammo

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

    ammo

    What do you mean with returning false?
  23. Xwad

    crash

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

    HUD

    but this code must work! but its not:/ addEventHandler("onClientPlayerSpawn", getRootElement(), function() showPlayerHudComponent("all", false) end)
  25. 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 )
×
×
  • Create New...