23.12.2012, 12:42
Buenas a Todos, Tengo problemas con cree un code para chekear la posicion del objeto y si esta cerca el player de da vida cero, pero algo esta mal ke me mata todo el tiempo. :S
si me pueden ayudar se lo agradezco
.
Desde ya muchas Gracias.
si me pueden ayudar se lo agradezco

Код:
forward Point(); public Point() { for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) { for(new obj=0; obj<5; obj++) { new Float:pos[3]; GetPlayerObjectPos(i, obj, pos[0], pos[1], pos[2]); if(IsPlayerInRangeOfPoint(i,1.0,pos[0], pos[1], pos[2])) { SetPlayerHealth(i, 0); } } } return 1; }