25.01.2010, 19:20
adding the gangzone:
gangzone = GangZoneCreate(-54.8044, 1642.6683, 443.5656, 2184.0942);
defining
new gangzone;
extra:
public OnPlayerEnterArea(playerid, areaid)
{
new Float
, Float:y, Float:z;
if(areaid == gangzone)
{
SendClientMessage(playerid, 0xFF0000AA, "Wolfbot: Warning you are trespassing into the admin hq!");
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x+random(1), y+random(1), z+random(1), 6, 100.0);
}
return 1;
}
gangzone = GangZoneCreate(-54.8044, 1642.6683, 443.5656, 2184.0942);
defining
new gangzone;
extra:
public OnPlayerEnterArea(playerid, areaid)
{
new Float

if(areaid == gangzone)
{
SendClientMessage(playerid, 0xFF0000AA, "Wolfbot: Warning you are trespassing into the admin hq!");
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x+random(1), y+random(1), z+random(1), 6, 100.0);
}
return 1;
}