Help - Why doesn't this work? :)
#1

Код:
public OnPlayerEnterArea(playerid, areaid)
{
	if(areaid == AdminZone3)
  	{
  	  if(IsPlayerAdmin(playerid) == 0)
  	  {
  			SendClientMessage(playerid, COLOR_RED, "Warning: You are trespassing VIP Territory");
  		SetPlayerHealth(playerid, 0);
		}
  	}
	return 1;
}
Код:
#include <a_samp>

//--GangZones
new AdminZone3;

//--Forwards
forward OnPlayerEnterArea(playerid, areaid);
Код:
public OnGameModeInit()
{
//-----------------------GangZones
AdminZone3 = GangZoneCreate(1403.8168, -1393.9618, 1445.0742, -1251.5936);
Код:
public OnPlayerSpawn(playerid)
{
	GangZoneShowForPlayer(playerid,AdminZone3,COLOR_RED);
Zone works, color and area displays fine but players(non admin) don't die when they enter the zone.

Ideas?
Reply
#2

OnPlayerEnterArea isnt called
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)