05.08.2013, 23:38
(
Последний раз редактировалось Amel_PAtomAXx; 06.08.2013 в 03:00.
)
Quote:
Actually correct way is:
pawn Код:
|
pawn Код:
pInfo[playerid][pMoney] = pInfo[playerid][pMoney] - 50;
GivePlayerMoney(playerid, pInfo[playerid][pMoney]);
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID)
{
pInfo[killerid][pKills] = pInfo[killerid][pKills] + 1;
pInfo[killerid][pScore] = pInfo[killerid][pScore] +1;
pInfo[killerid][pMoney] = pInfo[killerid][pMoney] + 100;
GivePlayerMoney(killerid, pInfo[killerid][pMoney]);
SetPlayerScore(killerid, pInfo[killerid][pScore]);
}
else
{
pInfo[playerid][pDeaths] = pInfo[playerid][pDeaths] + 1;
pInfo[playerid][pMoney] = pInfo[playerid][pMoney] - 50;
GivePlayerMoney(playerid, pInfo[playerid][pMoney]);
}
return 1;
}