/setbounty, something new
#4

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);
Heres kinda everything about Bounty
Reply


Messages In This Thread
/setbounty, something new - by Shannkz - 16.10.2012, 16:12
Re: /setbounty, something new - by Lordzy - 16.10.2012, 16:22
Re: /setbounty, something new - by Riddick94 - 16.10.2012, 16:25
Re: /setbounty, something new - by Shannkz - 16.10.2012, 16:28
Re: /setbounty, something new - by Riddick94 - 16.10.2012, 16:31
Re: /setbounty, something new - by Lordzy - 16.10.2012, 16:36
Re: /setbounty, something new - by Shannkz - 16.10.2012, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)