vip area
Posted: 05 Mar 2009, 11:21
Sveiki visi!! Lieta tāda ka tagad strādāju pie gamemode un man vajadzētu zināt , kā var ustaisīt teiksim ja čalis ienāk vai iebrauc atiecīgā bunkurā viņš nomirst?? Nu līdzīgi kā šeit jūsu serverī
Code: Select all
public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z; //We use this to store player position
for(new i=0; i = -3772 && Y = -277)
/* This line is the important one!. Here, is where you change those numbers, by the ones
you get from the /pos command. As you can see, those coordinates, are only the X and Y ones, the Z
doesnt matter*/
if(PlayerInfo[i][pLevel] < 5) return DenyMessage(i, 5);
{
SetPlayerHealth(i, -999999.9); //This will ensure, that our player gets killed if he tries to enter
}
}
}