[HELP] IsPlayerInArea|SetPlayerWanted
#27

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
That part looks like this now:
pawn Код:
public CheckPInArea(playerid)
{
    if(IsPlayerInArea(playerid, 917.74, 2043.3, 997.12, 2183) && !IsPlayerAdmin(playerid))
    { //X, Y, Z
        if(pSecondsInArea[playerid] == 0)
        {
            //Get & SetPlayerWanted
            SetPlayerWantedLevel(playerid, (GetPlayerWantedLevel(playerid) + 10));
            new wantedlevel;
            wantedlevel = GetPlayerWantedLevel(playerid);
            new tmp[64];
            //GetPlayerName
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            //TextToShowForAll
            format(tmp, sizeof(tmp), "(TRASPASSING ARMY)%s, traspassing ARMY.", wantedlevel);
            SendClientMessageToAll(0xFF0000FF, tmp);
            //TextToShowForPlayer
            format(tmp, sizeof(tmp), "(TRASPASSING ARMY) Your wanted level is now: %i", wantedlevel);
            SendClientMessage(playerid, 0xFF0000FF, tmp);
            pSecondsInArea[playerid]+=75;
        }

    }
    return 1;
}
You didn't even do anything to it....
pawn Код:
public CheckPInArea(playerid)
{
    if(IsPlayerInArea(playerid, 917.74, 2043.3, 997.12, 2183) && !IsPlayerAdmin(playerid))
    { //X, Y, Z
        if(pSecondsInArea[playerid] == 0)
        {
            //Get & SetPlayerWanted
            SetPlayerWantedLevel(playerid, (GetPlayerWantedLevel(playerid) + 10));
            new wantedlevel;
            wantedlevel = GetPlayerWantedLevel(playerid);
            new tmp[64];
            //GetPlayerName
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            //TextToShowForAll
            format(tmp, sizeof(tmp), "(TRASPASSING ARMY)%s, traspassing ARMY.", name);
            SendClientMessageToAll(playerid, 0xFF0000FF, tmp);
            //TextToShowForPlayer
            format(tmp, sizeof(tmp), "(TRASPASSING ARMY) Your wanted level is now: %i", wantedlevel);
            SendClientMessage(playerid, 0xFF0000FF, tmp);
            pSecondsInArea[playerid]+=75;
        }

    }
    return 1;
}
Reply


Messages In This Thread
[HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 21.11.2010, 14:57
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by TheXIII - 21.11.2010, 15:02
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Flyfishes - 21.11.2010, 15:02
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by HyperZ - 21.11.2010, 15:08
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 21.11.2010, 15:25
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by WillyP - 21.11.2010, 15:54
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Toni - 21.11.2010, 16:03
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by DiddyBop - 21.11.2010, 16:03
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 21.11.2010, 16:16
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Victor - 21.11.2010, 17:07
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by The_Gangstas - 21.11.2010, 17:08
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 21.11.2010, 17:47
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by WillyP - 21.11.2010, 17:51
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by The_Gangstas - 21.11.2010, 17:56
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 21.11.2010, 18:25
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Th3Angel - 22.11.2010, 03:02
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 22.11.2010, 03:39
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Th3Angel - 22.11.2010, 03:47
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 22.11.2010, 04:14
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 22.11.2010, 12:30
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Ricardo187 - 22.11.2010, 12:55
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 22.11.2010, 13:17
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 22.11.2010, 17:52
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by armyoftwo - 22.11.2010, 18:16
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 22.11.2010, 18:34
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by armyoftwo - 22.11.2010, 19:15
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Th3Angel - 22.11.2010, 19:57
Re: [HELP] IsPlayerInArea|SetPlayerWanted - by Larsey123IsMe - 22.11.2010, 20:08

Forum Jump:


Users browsing this thread: 2 Guest(s)