Larsey123IsMe 
			
				Unregistered
				
				
			
	
	
		
 
	
 
	
	
		If someone goes in a admin area (NoN-Admin), then he will get this text up "Get our or be killed in: (Count down from 15)"
And after 15 sec he get auto killed! (If he dident leave the area)
How to make this? In advance please
	
	
	
	
		
	
 
 
	
	
			Larsey123IsMe 
			
				Unregistered
				
				
			
	
	
		
 
	
 
	
	
		
Quote:
| 
					Originally Posted by Cameltoe   | 
 I did 

 but i dont understan any thing, can you please make a full script of that, all i got is
pawn Код:
if(/* Playerinareafunction */)
{
       if(/* IsplayeradminCode */)
      {
       /* your code here*/
      }
}
else
{
SetPlayerHealth(playerid,0.0);
}
}
 
	 
	
	
	
		
	
 
 
	
	
			Larsey123IsMe 
			
				Unregistered
				
				
			
	
	
		
 
	
 
	
	
		Edited:
pawn Код:
new pKill[MAX_PLAYERS];
new pCount[MAX_PLAYERS];
if(IsPlayerInArea(playerid, 997, 917, 2046, 2182))
{
    if(!IsPlayerAdmin(playerid))
    {
        pKill[playerid] = SetTimerEx("KillTime", 15000, false, "i", playerid);
    }
    return 1;
}
else if(!IsPlayerInArea(playerid, 997, 917, 2046, 2182))
{
    KillTimer(pKill(playerid));
    pCount[playerid] = 15;
    return 1;
}
forward KillTime(playerid);
public KillTime(playerid)
{
    pCount[playerid]--;
    if(pCount > 15)
    {
        SetPlayerHealth(playerid, 0.0);
        pCount[playerid] = 15;
    }
}
 
It got 11 Error's
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(1) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(2) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(4) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(6) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(10) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(12) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(14) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(14 -- 16) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(23) : error 033: array must be indexed (variable "pCount")
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(25) : error 017: undefined symbol "SetPlayerHealth"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(29) : warning 203: symbol is never used: "KillTimer"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(29) : warning 203: symbol is never used: "pKill"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
11 Errors.
 
	 
	
	
	
		
	
 
 
	
	
			Larsey123IsMe 
			
				Unregistered
				
				
			
	
	
		
 
	
 
	
	
		I forgot that. (now added) but i still got some error:
Whole Scrip i got:
pawn Код:
#include <a_samp>
new pKill[MAX_PLAYERS];
new pCount[MAX_PLAYERS];
if(IsPlayerInArea(playerid, 997, 917, 2046, 2182))
{
    if(!IsPlayerAdmin(playerid))
    {
        pKill[playerid] = SetTimerEx("KillTime", 15000, false, "i", playerid);
    }
    return 1;
}
else if(!IsPlayerInArea(playerid, 997, 917, 2046, 2182))
{
    KillTimer(pKill(playerid));
    pCount[playerid] = 15;
    return 1;
}
forward KillTime(playerid);
public KillTime(playerid)
{
    pCount[playerid]--;
    if(pCount > 15)
    {
        SetPlayerHealth(playerid, 0.0);
        pCount[playerid] = 15;
    }
}
 
Error:
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(6) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(8) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(12) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(14) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(18) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(25) : error 033: array must be indexed (variable "pCount")
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(31) : warning 203: symbol is never used: "pKill"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
 
	
		
	
 
 
	
	
			Larsey123IsMe 
			
				Unregistered
				
				
			
	
	
		
 
	
 
	
	
		You know where the Las Venturas Meat Factory is?
If you know, then can you make when he walk inside the Factory area then the countdown should start. I think i placed the MAX_X, MIN_Y... Wrong