07.08.2010, 10:05
You have to use GetPlayerTeam and SetPlayerTeam, together your save score thing would be like:
Also use
(must download the include from DracoBlue)
Not tested, but might work
pawn Код:
public OnPlayerDeath(playerid, killerid, reason);
{
if(GetPlayerTeam(playerid) != GetPlayerTeam(killerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerTeam(i) == GetPlayerTeam(killerid)
{
SetPlayerScore(i, GetPlayerScore(i)+1);
return 1;
}
}
}
}
pawn Код:
#include <dini>
pawn Код:
public OnPlayerDisconnect(playerid)
{
dini_IntSet(playerid, "Score", GetPlayerScore(playerid);
return 1;
}
public OnPlayerConnect(playerid);
{
SetPlayerScore(playerid, dini_Int(playerid, "Score");
return 1;
}

