blackberry Posted September 13, 2010 Share Posted September 13, 2010 Hello,im trying to figure out how can i respawn a player that his death(i mean bring him back to life) The gamemode is Deathmatch (Race DD/DM) i know my script should contain function pmFindPlayer ( text ) local player = getPlayerFromName ( text ) if ( player ) then return player end local lowtext = string.lower ( text ) for id , player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.lower ( getPlayerName ( player ) ), lowtext , 1 , true ) ) then return player end end return false end And i know it should find where to respawn someone (i mean find the map respawn) At the end,i will be able to put the admin command only for admins Thanks for help and dont be shy for questions!! Link to comment
dzek (varez) Posted September 13, 2010 Share Posted September 13, 2010 This looks like a request to me. The code you gave us isn't needed, but can be implemented - but it's common part, not connected with respawning in DD/DM in any way. Link to comment
blackberry Posted September 14, 2010 Author Share Posted September 14, 2010 So is it posible to make one? Link to comment
dzek (varez) Posted September 14, 2010 Share Posted September 14, 2010 Sure, but you can't request that. We are here to help ppl, not making whole scripts. Link to comment
Vercetti1010 Posted September 14, 2010 Share Posted September 14, 2010 Read the wiki on how command handlers work. Also check out the function lists and get to know it. You can easily teach yourself how to make good scripts and you will be really proud of yourself when you make your first thing. Just go check out development.mtasa.com 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