cordinates help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: cordinates help (
/showthread.php?tid=245130)
cordinates help -
Venice - 30.03.2011
this is code of the script
pawn Код:
foreach(Player, i) {
if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58)) {
if(EnteredArea[i] == 0) { // if he hasn'td beenterefo re
if(gTeam[i] == TEAM_USA && CapturedBy == 1 || gTeam[i] == TEAM_GERMANY && CapturedBy == 2 || gTeam[i] == TEAM_INDIA && CapturedBy == 3 || gTeam[i] == TEAM_England && CapturedBy == 4 || gTeam[i] == TEAM_RUSSIA && CapturedBy == 5) {
SendClientMessage(i, COLOR_RED, "This area has already been captured by your team!");
EnteredArea[i] = 1;
}
else {
SendClientMessageToAll(COLOR_CON_GREEN, "The bigear is being taken over!");
EnteredArea[i] = 1; // He has entered
SendClientMessage(i,COLOR_CON_GREEN, "Stay In here for 30 seconds to take over the area!");
IfCapture[i] = 1;
T1[i] = SetTimer("TakeOver",30000,0);
}
}
}
else {
EnteredArea[i] = 0; // When he leaves, he's no longer in the area
KillTimer(T1[i]);
}
}
what is this angle ??
pawn Код:
if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58))
Re: cordinates help -
Mike Garber - 30.03.2011
SetPlayerPos(playerid,-385.3699, 1506.446, -256.9133); Go there and check lazy.. We can't say exactly where that is by looking at the coordinate.
Re: cordinates help -
Venice - 30.03.2011
then what is this ? 4 angle ?
pawn Код:
if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58))
Re: cordinates help -
Mike Garber - 30.03.2011
IsPlayerInArea.. I'd guess minx,miny,maxx,maxy
Re: cordinates help -
jame42 - 30.03.2011
minx maxx miny maxy ?
Re: cordinates help -
Venice - 30.03.2011
what is minx maxx miny maxy ?