14.11.2012, 18:09
When you get a kill it doesn't give you cash or score.. Help?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
new string[128], string1[128];
PlayerInfo[playerid][pScore] +=(killerid, GetPlayerScore(killerid)+1);
PlayerInfo[killerid][pCash] +=(GetPlayerMoney(killerid)+1000);
PlayerInfo[killerid][pKills] ++;
PlayerInfo[playerid][pDeaths] ++;
format(string, sizeof(string), "You killed %s and recieved $1,000!", Name(playerid));
SendClientMessage(killerid, COLOR_CYAN, string);
format(string1, sizeof(string1), "You've been killed by %s!", Name(killerid));
SendClientMessage(playerid, COLOR_CYAN, string1); // See? Nothing wrong and you don't get it?
}
return 1;
}