16.10.2012, 16:28
pawn Код:
forward GiveBounty(playerid, value);
public GiveBounty(playerid, value)
{
if(PlayerInfo[playerid][pClubLeader] == 1 || PlayerInfo[playerid][pClubMember] == 1)
{
PlayerInfo[playerid][pBounty] = PlayerInfo[playerid][pBounty] + value;
new string[128];
format(string, sizeof(string), "[NFS Club] Ai castigat %d Bounty Points", value);
SendClientMessage(playerid, COLOR_GREEN, string);
}
else if(PlayerInfo[playerid][pClubLeader] == 2 || PlayerInfo[playerid][pClubMember] == 2)
{
PlayerInfo[playerid][pBounty] = PlayerInfo[playerid][pBounty] + value;
new string[128];
format(string, sizeof(string), "[NRG Club] Ai castigat %d Bounty Points", value);
SendClientMessage(playerid, COLOR_GREEN, string);
}
}
pawn Код:
if( strcmp( key , "Bounty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBounty] = strval( val ); }
pawn Код:
PlayerInfo[playerid][pBounty] = 0;
pawn Код:
new bounty = PlayerInfo[targetid][pBounty];
format(var, 128, "Bounty=%d\n",PlayerInfo[playerid][pBounty]);fwrite(hFile, var);
format(var, 32, "Bounty=%d\n",PlayerInfo[playerid][pBounty]);fwrite(hFile, var);

