bounties saving
#2

Код:
new Hitman[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
  Hitman[playerid]=0; // This is very important to prevent bugs !
}

public OnPlayerDisconnect(playerid, reason)
{
  dUserSetINT(PlayerName(playerid)).("Hitman",GetPlayerHitman(playerid));
}

stock GivePlayerHitman(playerid, hitman)
{
	Hitman[playerid] = Hitman[playerid] + hitman;
	return Hitman[playerid];
}

stock GetPlayerHitman(playerid)
{
	return Hitman[playerid];
}
This is an example how would i do.
I use this for everything, but you should make it like jobs, or you will have more work !

Best Regards !
Reply


Messages In This Thread
bounties saving - by klavins - 13.08.2009, 14:28
Re: bounties saving - by RaFsTar - 13.08.2009, 14:35
Re: bounties saving - by klavins - 13.08.2009, 14:46
Re: bounties saving - by RaFsTar - 13.08.2009, 14:50
Re: bounties saving - by klavins - 13.08.2009, 14:53
Re: bounties saving - by RaFsTar - 13.08.2009, 14:55
Re: bounties saving - by Correlli - 13.08.2009, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)