capitanazop Posted January 2, 2009 Share Posted January 2, 2009 function greetPlayer ( ) -- we store the player's name local joinedPlayerName = getClientName ( source ) local serverName = getServerName( ) ped = createPed( 108, 1707.9217529297, 1460.8656005859, 10.815040588379, 247.8258972168) giveWeapon( ped, 31, 100 ) setPedAnimation( ped, "ped", "FALL_back", -1, false, true, false ) outputChatBox ( "Welcome " .. joinedPlayerName .. " to ".. serverName .."!" , source, 255, 255, 255 ) makePedUseGun ( ped, 3, source ) end addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer ) when i spawn the ped dont have weapon and is freeze and the animation doesn't work Link to comment
Gamesnert Posted January 2, 2009 Share Posted January 2, 2009 Try timers on the functions that don't work? For as far as I know that should help. Link to comment
Ace_Gambit Posted January 2, 2009 Share Posted January 2, 2009 Sorry for going slightly off-topic but is makePedUseGun working now? Link to comment
capitanazop Posted January 2, 2009 Author Share Posted January 2, 2009 Try timers on the functions that don't work?For as far as I know that should help. nope i try with timers and nop Link to comment
Ace_Gambit Posted January 2, 2009 Share Posted January 2, 2009 Try to set the right weapon slot. However note that makePedUseGun does not work atm. Link to comment
50p Posted January 3, 2009 Share Posted January 3, 2009 You can't give peds weapons on the same frame. Try to use a timer to give them weapon after they spawn and yes, makePedUseGun doesn't work (I think it was removed). Link to comment
Gamesnert Posted January 3, 2009 Share Posted January 3, 2009 makePedUseGun doesn't work (I think it was removed). I was already wondering why I didn't see it in the ped functions. Link to comment
TimJ Posted January 10, 2009 Share Posted January 10, 2009 i thought you couldnt make peds until MTA 1.0, unless you used a nightly build ? Link to comment
50p Posted January 10, 2009 Share Posted January 10, 2009 i thought you couldnt make peds until MTA 1.0, unless you used a nightly build ? Yes. You can use nightly builds to test 1.0 functions. Not all of them work correctly, that's because devs are still working hard. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now