[Ajuda] Ladmin
#7

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"
A do Params resolvi, йra outro cod.
Reply


Messages In This Thread
Ladmin - by Mteck - 26.12.2012, 06:17
Re: Ladmin - by zSuYaNw - 26.12.2012, 06:18
Re: Ladmin - by Mteck - 26.12.2012, 06:21
Re: Ladmin - by zSuYaNw - 26.12.2012, 06:26
Re: Ladmin - by Mteck - 26.12.2012, 06:28
Re: Ladmin - by zSuYaNw - 26.12.2012, 06:29
Re: Ladmin - by Mteck - 26.12.2012, 06:31
Re: Ladmin - by zSuYaNw - 26.12.2012, 06:58
Re: Ladmin - by Mteck - 26.12.2012, 07:50

Forum Jump:


Users browsing this thread: 1 Guest(s)