new kills = PlayerInfo[playerid][pKills];
SetPlayerScore(playerid, kills);
new Float:Health;
GetPlayerHealth(playerid, Health);
if(Health == 0.0)
{
PlayerInfo[playerid][pDeaths] += 1;
}
GivePlayerMoney(killerid,3000);
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
if(team[killerid] != team[playerid])
{
Originally Posted by kujox32
pawn Код:
|
new kills = PlayerInfo[playerid][pKills];
SetPlayerScore(playerid, kills);
new Float:Health;
GetPlayerHealth(playerid, Health);
if(Health == 0.0)
{
kills++;
}
GivePlayerMoney(killerid,3000);
PlayerInfo[killerid][pKills] = kills;
if(team[killerid] != team[playerid])
{
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash = GetPlayerMoney(targetid);
new deaths = PlayerInfo[targetid][pDeaths];
new kills = PlayerInfo[targetid][pKills];
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[256];
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Kills:[%d] Deaths:[%d] Cash:[$%d]",kills,deaths,cash);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
}
PlayerInfo[killerid][pKills]++;
SetPlayerScore(killerid, PlayerInfo[killerid][pKills]);
GivePlayerMoney(killerid,3000);
PlayerInfo[playerid][pDeaths]++;
if(team[killerid] != team[playerid])
{
Originally Posted by Killa_
pawn Код:
|