Jump to content

Khalil

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Khalil

  1. Khalil

    LUA Help.

    function playerPing (thePlayer) if getPlayerPing ( thePlayer ) >= 900 then outputChatBox ( "Your ping is above 900, you may not use weapons until your ping is lowered", thePlayer, 255, 0, 0 ) end end function wepSwitch (thePlayer) setPlayerWeaponSlot ( thePlayer, 0 ) end addEventHandler ( "onPlayerWeaponSwitch", root, wepSwitch )
  2. Khalil

    Can't start maps

    Yes, I put it in the resources folder and refreshed from console then that showed up, I went in game and couldn't find the map. I tried starting the map from the admin panel but it would only say "loaded" and doesn't start... Any Help?
  3. Khalil

    Can't start maps

    I added a map to my server but this shows up and the map never starts: [2012-09-29 17:52:47] start: Requested by Console [2012-09-29 17:52:47] start: Resource 'agf' start was requested () Any help on what I should do?
  4. I am looking for a cheap hoster for an RPG server. 60 slots.
  5. Khalil

    Weapons

    And how do I make the people inside the ColShape unkillable?
  6. Khalil

    Weapons

    I would like to know, if it is possible, how to disable weapons in a certain location. Where no one in that area could take their gun out. Also, how do I make a specific area where everybody in it is un-killable.
  7. Khalil

    Ped

    giveWeapon doesn't work... Do I have to setWeaponSlot?
  8. Khalil

    Ped

    How do I: 1. Give a frozen ped a weapon. 2. Make him un-killable 3. Animate Hand Crossing ( I know the Syntax I wanna know the ID of this animation itself )
  9. Khalil

    Cant Open MTA

    This worked.. Thanks
  10. Khalil

    Cant Open MTA

    I do not know what version I am using... I just went to www.mtasa.com and clicked on download, must be the newest version. Yes, on this PC I only have 1 user, the other is a guest user...
  11. Khalil

    Cant Open MTA

    Hello all, My problem is that when i finish installing MTA and open it a weird message comes out however, on my other PC MTA works perfectly check this out Can anyone help me ?
  12. Khalil

    Car Engine

    Error: engine\script.lua:5: attempt to call global 'playsound' If it helps, maybe there's something wrong with my meta.xml: "Khalil" type="script" name="engine" description="engine script" /> When I do /engine it works fine but the sound doesn't play..
  13. Khalil

    Car Engine

    Whats wrong with this? function switchEngine ( playerSource ) local theVehicle = getPedOccupiedVehicle ( playerSource ) -- Check if the player is in any vehicle and if he is the driver if theVehicle and getVehicleController ( theVehicle ) == playerSource then local state = getVehicleEngineState ( theVehicle ) setVehicleEngineState ( theVehicle, not state ) playSound ( sound.mp3, [ bool looped = false ] ) end end addCommandHandler ( "engine", switchEngine )
  14. Khalil

    Car Engine

    Well guys, I just started lua scripting and I made a few "beginner" scripts. Anyway, I made an engine resource that start/stops vehicle engines when you do /engine. I just wanted to add sound effects to it. When someone does /engine in a vehicle, a certain sound goes off. PS. I don't want someone to do it for me, I just need a little help with it. Thanks
  15. I think this is a problem with meta.xml... Make sure everything in it mentions what's in the script itself.
×
×
  • Create New...