Page 1 of 1

vip area

Posted: 05 Mar 2009, 11:21
by wOOzzY
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ī

Re: vip area

Posted: 05 Mar 2009, 14:40
by Faust

Re: vip area

Posted: 05 Mar 2009, 17:25
by wOOzzY
nekas nesanāca :( :(

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
           }
       }
   }
varbūt kāds var pateikt ko daru nepareizi ??