[Ajuda]kill - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda]kill (
/showthread.php?tid=294700)
[Ajuda]kill -
Mteck - 02.11.2011
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
if(gTeam[killerid] == TEAM_ZOMBIE && gTeam[playerid] == TEAM_HUMAN || gTeam[playerid] == TEAM_ZOMBIE && gTeam[killerid] == TEAM_HUMAN)
{
SetPlayerScore(killerid, (GetPlayerScore(killerid)+1)), GivePlayerMoney(killerid, 5000);
}
return 1;
}
eu queria fazer assim quando um zombie mata um humano o humano vira zombie, quando um humano mata um zombie ele continua zombie.
@aproveitando o topico assim eu compilei o gm na 0.3d depois compilei na 0.3c ele vai roda normalmente na 0.3c? se tiver uma forma poderiam me dizer?
Re: [Ajuda]kill -
Shadoww5 - 02.11.2011
Quote:
Originally Posted by Mteck
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid,playerid,reason); if(gTeam[killerid] == TEAM_ZOMBIE && gTeam[playerid] == TEAM_HUMAN || gTeam[playerid] == TEAM_ZOMBIE && gTeam[killerid] == TEAM_HUMAN) { SetPlayerScore(killerid, (GetPlayerScore(killerid)+1)), GivePlayerMoney(killerid, 5000); } return 1; }
eu queria fazer assim quando um zombie mata um humano o humano vira zombie, quando um humano mata um zombie ele continua zombie.
@aproveitando o topico assim eu compilei o gm na 0.3d depois compilei na 0.3c ele vai roda normalmente na 0.3c? se tiver uma forma poderiam me dizer?
|
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
if(gTeam[killerid] != gTeam[playerid])
{
gTeam[playerid] = gTeam[killerid];
SetPlayerScore(killerid, (GetPlayerScore(killerid)+1))
GivePlayerMoney(killerid, 5000);
}
return 1;
}
Re: [Ajuda]kill -
Mteck - 02.11.2011
Quote:
Originally Posted by Shadoww5
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
if(gTeam[killerid] != gTeam[playerid])
{
gTeam[playerid] = gTeam[killerid];
SetPlayerScore(killerid, (GetPlayerScore(killerid)+1));
GivePlayerMoney(killerid, 5000);
}
return 1;
}
|
tks Shadow