How to make My admin script save scores?
#9

hello supposing your using dudb to save player data u can do this
Код:
// ok so inside OnPlayerDisconnect do this

if (PInfo[playerid][LoggedIn] == 1)
{
   	// Was loggedin, so save the data!

  	dUserSetINT(PlayerName(playerid)).("Score",GetPlayerScore(playerid));// score save is here
}

// now inside your login command / auto login, do this

SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("Score"));// this sets their score to the saved amount
im pretty sure as long as you base your player saving on dudb then this will work (it does for me anyway)

Reply


Messages In This Thread
How to make My admin script save scores? - by [WSM]Deadly_Evil - 03.02.2010, 03:49
Re: How to make My admin script save scores? - by lameguy - 03.02.2010, 12:59
Re: How to make My admin script save scores? - by Jeffry - 03.02.2010, 13:08
Re: How to make My admin script save scores? - by nastoe - 03.02.2010, 13:10
Re: How to make My admin script save scores? - by [WSM]Deadly_Evil - 03.02.2010, 13:16
Re: How to make My admin script save scores? - by Jeffry - 03.02.2010, 13:24
Re: How to make My admin script save scores? - by Roperr - 03.02.2010, 13:26
Re: How to make My admin script save scores? - by lameguy - 03.02.2010, 14:03
Re: How to make My admin script save scores? - by philmckrakin - 03.02.2010, 14:15
Re: How to make My admin script save scores? - by [WSM]Deadly_Evil - 03.02.2010, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)