TeamKill error
#9

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if( gTeam[ playerid ] == gTeam[ killerid ] )
    {
        SetPlayerDrunkLevel(playerid, 0);
        GivePlayerMoney(killerid, -1000);
        SetPlayerScore(killerid,GetPlayerScore(killerid)-2);
        SendClientMessage(killerid, COLOR_BRIGHTRED, "You have teamkilled, you lost $1000 and 2 score");
    }
    else
    {
        new string[128];
        GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"You have killed %s and you gained 1000$ and 1 score",string);
        SendClientMessage(killerid, COLOR_GREEN, string);
        SetPlayerDrunkLevel(playerid, 0);
        GivePlayerMoney(killerid,1000);
        SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    }
    return 1;
}
Your english suxs, (no offense)
Reply


Messages In This Thread
TeamKill error - by buzifej - 18.12.2010, 18:46
Re: TeamKill error - by WillyP - 18.12.2010, 18:47
Re: TeamKill error - by buzifej - 18.12.2010, 18:55
Re: TeamKill error - by Face9000 - 18.12.2010, 18:59
Re: TeamKill error - by buzifej - 18.12.2010, 19:08
Re: TeamKill error - by Face9000 - 18.12.2010, 19:09
Re: TeamKill error - by blackwave - 18.12.2010, 19:10
Re: TeamKill error - by buzifej - 18.12.2010, 19:21
Re: TeamKill error - by Mean - 18.12.2010, 22:31
Re: TeamKill error - by buzifej - 19.12.2010, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)