[POMOC] Mrtav

Započeo Danisha, Septembar 27, 2012, 17:56:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:Ravens
Detaljan opis problema:E ovako izmapo sam jednu kucu i ogradio da neko nemoze uci i kako sada da stavim ako neko slucajno udje ili sa helicem sleti da ga ubije i pise Sta se kacis na moju ogradu u tom pederskom odelu??
sve da ubija osim 1337 i 1338 znali ko da mi to napravi
HVALA UANPRED
Dio skripte:neznam sta treba
Neke slike/video za lakse dobivanje pomoci(neobavezno)://///

Vegas.

Sejvaj poziciju tu na tom mjestu i daj mi 'vamo.

evo sevacu a kako da sevam da obuhvati celo dvoriste od kuce

Vegas.

Pa lepo, sejvaj nekoliko pozicija od ograde..

E evo ti pozicije brate

1495.5255,-698.2889,94.7500

1467.1963,-675.6238,94.7500

1558.6929,-672.3524,95.2205

1538.0502,-676.0370,95.2205

1507.7751,-679.5098,107.6940

1543.0856,-672.4839,107.7505


ili ovako ako ti je lakse da izvadim iz savepizicion samp
AddPlayerClass(16,1495.5255,-698.2889,94.7500,70.0065,0,0,0,0,0,0); // 
AddPlayerClass(16,1467.1963,-675.6238,94.7500,7.5801,0,0,0,0,0,0); // 
AddPlayerClass(16,1558.6929,-672.3524,95.2205,283.6060,0,0,0,0,0,0); // 
AddPlayerClass(16,1538.0502,-676.0370,95.2205,96.5442,0,0,0,0,0,0); // 
AddPlayerClass(16,1507.7751,-679.5098,107.6940,96.5442,0,0,0,0,0,0); // 
AddPlayerClass(16,1543.0856,-672.4839,107.7505,96.5442,0,0,0,0,0,0); //

ali iste su pozije pa ti vidi koje ces sada

stavis pod OnPlayerUpdate(playerid)
if(IsPlayerInRangeOfPoint(playerid,6.0,1495.5255,-698.2889,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);return 1;}
if(IsPlayerInRangeOfPoint(playerid,6.0,1467.1963,-675.6238,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);return 1;}
if(IsPlayerInRangeOfPoint(playerid,6.0,1558.6929,-672.3524,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);return 1;}
if(IsPlayerInRangeOfPoint(playerid,6.0,1538.0502,-676.0370,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);return 1;}
if(IsPlayerInRangeOfPoint(playerid,6.0,1507.7751,-679.5098,107.6940)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);return 1;}
if(IsPlayerInRangeOfPoint(playerid,6.0,1543.0856,-672.4839,107.7505)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);return 1;}

aha a kako stavit da mu pise sta se kacis na moju ogradu u tom pederskom odelu??

if(IsPlayerInRangeOfPoint(playerid,6.0,1495.5255,-698.2889,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);SendClientMessage(playerid,0xC6AEC7AA,"Sta mi se kacis na ogradu u tom pederskom odelu!");}
if(IsPlayerInRangeOfPoint(playerid,6.0,1467.1963,-675.6238,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);SendClientMessage(playerid,0xC6AEC7AA,"Sta mi se kacis na ogradu u tom pederskom odelu!");}
if(IsPlayerInRangeOfPoint(playerid,6.0,1558.6929,-672.3524,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);SendClientMessage(playerid,0xC6AEC7AA,"Sta mi se kacis na ogradu u tom pederskom odelu!");}
if(IsPlayerInRangeOfPoint(playerid,6.0,1538.0502,-676.0370,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);SendClientMessage(playerid,0xC6AEC7AA,"Sta mi se kacis na ogradu u tom pederskom odelu!");}
if(IsPlayerInRangeOfPoint(playerid,6.0,1507.7751,-679.5098,107.6940)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);SendClientMessage(playerid,0xC6AEC7AA,"Sta mi se kacis na ogradu u tom pederskom odelu!");}
if(IsPlayerInRangeOfPoint(playerid,6.0,1543.0856,-672.4839,107.7505)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);SendClientMessage(playerid,0xC6AEC7AA,"Sta mi se kacis na ogradu u tom pederskom odelu!");}

znaci to stavis pod OnPlayerUpdate(playerid) samo ako budes imao problema sa daljinom na koju ubija podesi radius

if(IsPlayerInRangeOfPoint(playerid,6.0,1495.5255,-698.2889,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom pederskom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1467.1963,-675.6238,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom pederskom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1558.6929,-672.3524,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom pederskom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1538.0502,-676.0370,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom pederskom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1507.7751,-679.5098,107.6940)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom pederskom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1543.0856,-672.4839,107.7505)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom pederskom odelu!?");}

Evo ovo sve redi ok ali izbacuje i 1337 i 1338 ovo sta se kacis na moju ogradu kako to da sredim

Vegas.

Probaj.
if(IsPlayerInRangeOfPoint(playerid,6.0,1495.5255,-698.2889,94.7500)){if(PlayerInfo[playerid][pAdmin]<1336)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1467.1963,-675.6238,94.7500)){if(PlayerInfo[playerid][pAdmin]<1336)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1558.6929,-672.3524,95.2205)){if(PlayerInfo[playerid][pAdmin]<1336)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1538.0502,-676.0370,95.2205)){if(PlayerInfo[playerid][pAdmin]<1336)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1507.7751,-679.5098,107.6940)){if(PlayerInfo[playerid][pAdmin]<1336)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1543.0856,-672.4839,107.7505)){if(PlayerInfo[playerid][pAdmin]<1336)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}

Da li ti radi?
RESPECT :
Vegas & C++

ne opet izbacuje i 1337 i 1338

f(IsPlayerInRangeOfPoint(playerid,6.0,1495.5255,-698.2889,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1467.1963,-675.6238,94.7500)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1558.6929,-672.3524,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1538.0502,-676.0370,95.2205)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1507.7751,-679.5098,107.6940)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}
    if(IsPlayerInRangeOfPoint(playerid,6.0,1543.0856,-672.4839,107.7505)){if(PlayerInfo[playerid][pAdmin]<1337)SetPlayerHealth(playerid,0);Mrtav[playerid] = 1;SendClientMessage(playerid,0xFFFFFFAA,"Sta se kacis na moju ogradu u tom [cenzura]skom odelu!?");}

Probaj ovako.
RESPECT :
Vegas & C++

Zasto ne koristis samo jednu koordinatu sa velikim rangeom?
ODSUTAN

Kako da napravim da obuhvati celo dvoriste kuce