03.01.2017, 03:12
check images
http://imgur.com/a/dYxsK
where the problem? two send death
my scipt death
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
PlayerInfo[playerid][pDeaths]++;
playeralive--;
if(team[playerid] == TEAM_HUMAN) SetPlayerZombie(playerid);
if(killerid != INVALID_PLAYER_ID)
{
if(team[killerid] == TEAM_HUMAN)
{
PlayerInfo[killerid][pHumanKills]++;
SetPlayerPos(playerid, MapInfo[HumanX], MapInfo[HumanY], MapInfo[HumanZ]);
PlayerInfo[killerid][pXP] += (PlayerInfo[playerid][pVIP] >= 2) ? 7 : 3;
if(GetPlayerSkin(killerid) == 0)
{
new Admin[24] = "Sercurity";
new reason3[128] = "Skin Hack (CJ)";
BanPlayer(killerid,Admin,reason3);
}
}
if(team[killerid] == TEAM_ZOMBIE)
{
PlayerInfo[killerid][pZombieKills]++;
SetPlayerPos(playerid, MapInfo[ZombieX], MapInfo[ZombieY], MapInfo[ZombieZ]);
PlayerInfo[killerid][pXP] += (PlayerInfo[playerid][pVIP] >= 2) ? 5 : 2;
}
GiveMeKill(killerid, reason);
new str[254];
format(str,sizeof(str),"{FFFF00}[DEATH]: {FFFFFF}You have been killed by %s.",GetName(killerid));
SCM(playerid,-1,str);
format(str,sizeof(str), "[DEATH] %s killed %s ", GetName(killerid) , GetName(playerid));
Log("death", str);
}
return 1;
}