how do i disable this?
#1

I have a /hits script. This code will show the current hits:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(hit, 3, cmdtext);

    if(!strcmp(cmdtext, "/hits", true))
    {
        new count = 0;
        SendClientMessage(playerid, COLOR_MSG, "Current Hits:");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && hit[i] > 0)
            {
                new string[256];
                format(string, 256, "%s (%i) for $%i", ReturnPlayerName(i), i, hit[i]);
                SendClientMessage(playerid, COLOR_FOUND, string);
                count++;
            }
        }
        if(count == 0)
        {
            SendClientMessage(playerid, COLOR_ERROR, "No Hits Placed At This Time.");
    }
        return 1;
}

    return 0;
    }
My gTeam is "Team_Cop" without quotes. I want it so when gTeam == Team_Cop, it will SendClientMessage "You are a cop. You cannot see the hits!" Also, this is not in my gamemode. It's a filterscript so how can i define Team_Cop? +REP
Reply


Messages In This Thread
how do i disable this? - by TheMightyEddy - 19.04.2012, 23:57
Re: how do i disable this? - by zSuYaNw - 20.04.2012, 00:02
Re: how do i disable this? - by TheMightyEddy - 20.04.2012, 00:04
Re: how do i disable this? - by zSuYaNw - 20.04.2012, 01:04
Re: how do i disable this? - by TheMightyEddy - 20.04.2012, 01:14
Re: how do i disable this? - by zSuYaNw - 20.04.2012, 05:57
Re: how do i disable this? - by TheMightyEddy - 20.04.2012, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)