help of score
#6

First do
at the top of script
pawn Код:
#include <dini>
pawn Код:
enum pInfo
{
score
}
Then go on
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerScore(playerid,0);
}
Now do for save stats
pawn Код:
SStats(playerid)
{
dini_IntSet(Pos(playerid),"Score",GetPlayerScore(playerid));
}
Now go for load stats
pawn Код:
LoadStats(playerid)
{
SetPlayerScore(playerid, dini_Int(Pos(playerid),"Score"));
}
After this
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
 for(new i=0; i<MAX_PLAYERS; i++)
 {
       PlayerInfo[i][Score] +=25;//or what you want
 }
}
in Last do
pawn Код:
public OnGameModeInit()
{
LoadStats(playerid);
}
Reply


Messages In This Thread
help of score - by Xport6050 - 25.05.2013, 10:09
Re: help of score - by TheArcher - 25.05.2013, 10:21
Re: help of score - by Gamer_007 - 25.05.2013, 10:23
AW: help of score - by Skimmer - 25.05.2013, 13:04
Re: help of score - by Xport6050 - 26.05.2013, 12:04
Re: help of score - by IceBilizard - 26.05.2013, 15:10
Re: help of score - by Xport6050 - 29.05.2013, 04:26

Forum Jump:


Users browsing this thread: 1 Guest(s)