22.11.2010, 19:57
Quote:
That part looks like this now:
pawn Код:
|
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;
}