23.12.2016, 11:11
no change at all
bug will be make double anti spawn kill, then if player death again, will be spawned at bb
bug will be make double anti spawn kill, then if player death again, will be spawned at bb
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(PlayerInfo[playerid][Logged] == 1) { if(killerid != INVALID_PLAYER_ID) { SendDeathMessage(killerid, playerid, reason); PlayerInfo[playerid][pDeaths]++; if(team[killerid] == HUMAN) PlayerInfo[killerid][pHumanKills]++,PlayerInfo[killerid][pXP] += 3; if(team[killerid] == ZOMBIE) PlayerInfo[killerid][pZombieKills]++,PlayerInfo[killerid][pXP] += 2; new str[254]; format(str,sizeof(str),"{FFFF00}[DEATH]: {FFFFFF}You have been killed by %s.",GetName(killerid)); SendClientMessage(playerid,-1,str); format(str,sizeof(str), "[DEATH] %s killed %s ", GetName(killerid) , GetName(playerid)); Log("death", str); if(team[playerid] == HUMAN) team[playerid] = ZOMBIE; } } return 1; }
