Jump to content

Sergei

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by Sergei

  1. If I use onClientPedWasted I still get usless values -> nil, false and false; it should return element and two integers as wiki says function pedwaswasted(killer,weapon,bodypart) outputDebugString(""..tostring(killerid).." and "..tostring(weapon).." and "..tostring(bodypart).."") end addEventHandler("onClientPedWasted",getRootElement(),pedwaswasted)
  2. Sergei

    Thanx!

    I have started with LUA now and I'm planning to make something in deathmatch way for start.
  3. Sergei

    Thanx!

    I have started with LUA now and I'm planning to make something in deathmatch way for start.
  4. Sergei

    Thanx!

    MTA rocks for sure. I have recently moved over here from SA:MP since I got bored of scripting with pawn. MTA with LUA offers us a lot more functions and all and its features are really amazing. I think that there isn't that many players on MTA because there is not enough various servers to play on. I hope this will change sooner or later.
  5. Sergei

    Thanx!

    MTA rocks for sure. I have recently moved over here from SA:MP since I got bored of scripting with pawn. MTA with LUA offers us a lot more functions and all and its features are really amazing. I think that there isn't that many players on MTA because there is not enough various servers to play on. I hope this will change sooner or later.
  6. Hello. I have started playing around LUA and MTA recently and I have already got to one problem. I wanted to make that if you kill ped with headshot (bodypart 9) it would take its head of. It has never wanted to work, so I added this little debug line to OnPedWasted callback. function wastedped(ammo, attacker, weapon, bodypart) outputChatBox(""..tostring(ammo).." and "..tostring(attacker).." and "..tostring(weapon).." and "..tostring(bodypart).."") end addEventHandler("onPedWasted",getRootElement(),wastedped) It always gets me ammo (0), attacker (userdata: 00000***), weapon (false), bodypart (false). I wonder who it is possible that weapon and bodypart can be false, since it should return integer and not boolean (at least what wiki says) Regards
  7. Hello. I have started playing around LUA and MTA recently and I have already got to one problem. I wanted to make that if you kill ped with headshot (bodypart 9) it would take its head of. It has never wanted to work, so I added this little debug line to OnPedWasted callback. function wastedped(ammo, attacker, weapon, bodypart) outputChatBox(""..tostring(ammo).." and "..tostring(attacker).." and "..tostring(weapon).." and "..tostring(bodypart).."") end addEventHandler("onPedWasted",getRootElement(),wastedped) It always gets me ammo (0), attacker (userdata: 00000***), weapon (false), bodypart (false). I wonder who it is possible that weapon and bodypart can be false, since it should return integer and not boolean (at least what wiki says) Regards
  8. Yep it is. Go in your resources server and look for 'amx' folder. You will find all information there. ...\server\mods\deathmatch\resources\amx
  9. Yep it is. Go in your resources server and look for 'amx' folder. You will find all information there. ...\server\mods\deathmatch\resources\amx
  10. Seems very cool. I'm going to try it
  11. Seems very cool. I'm going to try it
  12. So you need game server hosting not web hosting. serverFFS is one of those which support MTA v1.0 and is trustful.
  13. So you need game server hosting not web hosting. serverFFS is one of those which support MTA v1.0 and is trustful.
×
×
  • Create New...