Kill a player if he is in an area?
#1

Hello,

I've got some little problems with my admin house.
I've made a simple map (a admin house) but i want that normal players get killed if they try to enter it ( so if they get in an area (IsPlayerInArea)).

I know that you need to do somethnig with if (isplayerinarea(playerid)) if isplayeradmin(playerid) else Setplayerhealth
etc, etc, etc.., but i can't get a working script. i hope someone could post some lines which i can edit to my co-ords
thankxxxx

offtopic: why is this: picture as an smiley in the new forum o_O xD
Reply
#2

Do

pawn Код:
if(/* Playerinareafunction */)
{
       if(/* IsplayeradminCode */)
      {
       /* your code here*/
      }
}
else
{
SetPlayerHealth(playerid,0.0);
}
}
Just typed it from scratch now... Tell me if you get any errors for that..

Edit: soz for indention
Reply
#3

Quote:
Originally Posted by ((Lorenc))
Посмотреть сообщение
Do

pawn Код:
if(/* Playerinareafunction */)
{
       if(/* IsplayeradminCode */)
      {
       /* your code here*/
      }
}
else
{
SetPlayerHealth(playerid,0.0);
}
}
Just typed it from scratch now... Tell me if you get any errors for that..

Edit: soz for indention
oo thanx :S gonna try it out soon, but atm i cant get at my other pc with the scripts, >< i will pm you if it works
Reply
#4

Alright, If it dosent Ill fix it for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)