26.12.2012, 06:31
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
if((gTeam[playerid] == TEAM_HUMAN) && (gTeam[killerid] == TEAM_ZOMBIE))
{
gTeam[playerid] = TEAM_ZOMBIE;
SetPlayerColor(playerid, ADMIN_RED);
SendClientMessage(playerid, 0xF7F700, "[SERVER] - Vocк foi Infectado");
SendClientMessageToAll(0xF7F700, "[SERVER] - Um Humano foi Infectado");
GivePlayerMoney(killerid, 5000);
GameTextForPlayer(killerid,"~p~+1 XP ~n~~w~+$5000",6000,4);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
return 1;
}
else if((gTeam[playerid] == TEAM_ZOMBIE) && (gTeam[killerid] == TEAM_HUMAN))
{
SetPlayerColor(playerid, ADMIN_RED);
SendClientMessage(killerid, 0xF7F700, "[SERVER] - Vocк Matou um zombie ");
SendClientMessageToAll(0xF7F700, "[SERVER] - Um Zombie Foi morto");
GivePlayerMoney(killerid, 5000);
GameTextForPlayer(killerid, "~p~+1 XP ~n~~w~+$5000", 6000, 4);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
return 1;
}
No ladmin deu esses erros
pawn Код:
error 017: undefined symbol "killerd"
pawn Код:
warning 203: symbol is never used: "params"