double death Message please help me
#1



check images
http://imgur.com/a/dYxsK

where the problem? two send death

my scipt death
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason);
    
PlayerInfo[playerid][pDeaths]++;
    
playeralive--;
    if(
team[playerid] == TEAM_HUMANSetPlayerZombie(playerid);
    if(
killerid != INVALID_PLAYER_ID)
    {
        if(
team[killerid] == TEAM_HUMAN)
        {
            
PlayerInfo[killerid][pHumanKills]++;
            
SetPlayerPos(playeridMapInfo[HumanX], MapInfo[HumanY], MapInfo[HumanZ]);
            
PlayerInfo[killerid][pXP] += (PlayerInfo[playerid][pVIP] >= 2) ? 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(playeridMapInfo[ZombieX], MapInfo[ZombieY], MapInfo[ZombieZ]);
            
PlayerInfo[killerid][pXP] += (PlayerInfo[playerid][pVIP] >= 2) ? 2;
        }
        
GiveMeKill(killeridreason);
        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;

Reply
#2

pawn Код:
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 stri[128], str[128];
        format(stri,sizeof(stri),"{FFFF00}[DEATH]: {FFFFFF}You have been killed by %s.",GetName(killerid));
        SCM(playerid,-1,stri);
        format(str,sizeof(str), "[DEATH] %s killed %s ", GetName(killerid) , GetName(playerid));
        Log("death", str);
    }
    return 1;
}
try this you should use different string names, and less array!
Reply
#3



http://imgur.com/a/8BKam

double again , and bug blueberry please help !
Reply
#4

indonesia gan?
coba pakek ini nih..

PHP код:

public OnPlayerDeath(playeridkilleridreason

    
SendDeathMessage(killeridplayeridreason); 
    
PlayerInfo[playerid][pDeaths]++; 
    
playeralive--; 
    if(
team[playerid] == TEAM_HUMANSetPlayerZombie(playerid); 
    if(
killerid != INVALID_PLAYER_ID
    { 
        if(
team[killerid] == TEAM_HUMAN
        { 
            
PlayerInfo[killerid][pHumanKills]++; 
            
SetPlayerPos(playeridMapInfo[HumanX], MapInfo[HumanY], MapInfo[HumanZ]); 
            
PlayerInfo[killerid][pXP] += (PlayerInfo[playerid][pVIP] >= 2) ? 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(playeridMapInfo[ZombieX], MapInfo[ZombieY], MapInfo[ZombieZ]); 
            
PlayerInfo[killerid][pXP] += (PlayerInfo[playerid][pVIP] >= 2) ? 2
        } 
        new 
stri[128], str[128]; 
        
format(stri,sizeof(stri),"{FFFF00}[DEATH]: {FFFFFF}You have been killed by %s.",GetName(killerid)); 
        
SCM(playerid,-1,stri); 
        
format(str,sizeof(str), "[DEATH] %s killed %s "GetName(killerid) , GetName(playerid)); 
        
Log("death"str); 
    } 
    return 
1

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)