double death Message please help me - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: double death Message please help me (
/showthread.php?tid=625535)
double death Message please help me -
Izaki - 03.01.2017
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;
}
Re: double death Message please help me -
KillerStrike23 - 03.01.2017
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!
Re: double death Message please help me -
Izaki - 03.01.2017
http://imgur.com/a/8BKam
double again , and bug blueberry please help !
Re: double death Message please help me -
DandyCorleone - 03.01.2017
indonesia gan?
coba pakek ini nih..
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;
}
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;
}