NEED HELP!
#7

Quote:
Originally Posted by ♣ ⓐⓢⓢ
pawn Код:
#include <a_samp>

new gTeam[MAX_PLAYERS];

#define TEAM_COP 21

#define COLOR_COP 0x3C26C7AA
#define COLOR_BRIGHTRED 0xFF0000AA

public OnPlayerDeath(playerid, killerid, reason)
{
    if(gTeam[killerid] == TEAM_COP)
    {
        new string[40];
        string[0] = GetPlayerWantedLevel(playerid) * 1000;
        GivePlayerMoney(killerid, string[0]);
        SetPlayerWantedLevel(playerid, 0);
        format(string, sizeof string, "You killed a criminal and earned %d$!", string[0]);
        SendClientMessage(killerid, COLOR_COP, string);
    }
    else
    {
        SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
        SendClientMessage(killerid, COLOR_BRIGHTRED, "Your wanted level is increased!");
    }
    return 1;
}
oh awsome it works!!!
Tyvm!
Reply


Messages In This Thread
NEED HELP! - by Jatoofer - 28.05.2009, 15:16
Re: NEED HELP! - by Gozerr - 28.05.2009, 15:19
Re: NEED HELP! - by Jatoofer - 28.05.2009, 18:09
Re: NEED HELP! - by Nero_3D - 28.05.2009, 18:10
Re: NEED HELP! - by Jatoofer - 28.05.2009, 18:13
Re: NEED HELP! - by Nero_3D - 28.05.2009, 20:27
Re: NEED HELP! - by Jatoofer - 29.05.2009, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)