22.07.2009, 18:41
Hi, i want to make Admin Zone with IsPlayerInCube, because Admin base is in 837 height. Coords is
But my uf.inc may be broken, because when i include, there are too many errors and warnings in include. I am new and i don't know how to make that effect.
I want to Timer check player's coords, and when he's not admin and he's in this area, he will receive a message "You Are in admin area ! Get lost !" and make his health less and less to death.
I have already done this, but it's not works.
Please, help, when i post a message, noone responds. 
Code:
IsPlayerInCube(p,1998.5381,2077.4019,837.5109,2142.5049,2150.6023,852.4391
I want to Timer check player's coords, and when he's not admin and he's in this area, he will receive a message "You Are in admin area ! Get lost !" and make his health less and less to death.
I have already done this, but it's not works.
Code:
forward CheckCube(); public CheckCube() { for(new p = 0; p < GetMaxPlayers(); p++) { if (IsPlayerInCube(p,1998.5381,2077.4019,837.5109,2142.5049,2150.6023,852.4391)) { if (!IsPlayerAdmin(p)) { SendClientMessage(p,CZERWONY,"Jesteś na terytorium admina ! Wynoś się !!"); SetPlayerHealth(p,0); return 1; } } } }
