GTAvision.com - Forum - Grand Theft Auto News, Downloads, Community and more...

Position: Grand Theft Auto: San Andreas » Multiplayer » Area Check Cp's » Druckansicht
Blitz, 31.08.2007, 11:37
Ich habe von nem anderen Forum erfahrn wie uich einen AreaCheck Cp mache, aber...
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
forward AreaCheck();
public AreaCheck() {
   for (new i; i<MAX_PLAYERS; i++) {
      if (IsPlayerInArea(i,1928.1771,987.5739,1970.5675,1042.8369)) {
          //SetPlayerCheckpoint(i,-1477.8943,2533.8799,55.9759, 3.0);
      } else {
          DisablePlayerCheckpoint(i);
      }
   }
}

stock IsPlayerInArea(playerID, Float:X_max, Float:X_min, Float:Y_max, Float:Y_min) {
   new Float:X,Float:Y,Float:Z;
   GetPlayerPos(playerID, X, Y, Z);
   if(X >= X_max && X <= X_min && Y >= Y_max && Y <= Y_min) {
      return 1;
   }
   return 0;
}


und der timer dazu

Code:
1
    SetTimer("AreaCheck", 500, 1);



Also da
Code:
1
if (IsPlayerInArea(i,1928.1771,987.5739,1970.5675,1042.8369))
weis ich nicht welche Kords rein gehören, kann mir das wer sagen.

und nochwas Tennpenny und so funzen bei mir nicht

thx im Voraus

mfg blitz
XCorE, 31.08.2007, 11:55
lese die moneyarea von Recycler dort steht es drin
Recycler, 31.08.2007, 14:45
Kein Game-Tag.

*closed*

MfG
Recycler
GTAvision.com :: Forumregeln :: FAQ :: Impressum :: Kontakt :: RDRvision.com :: LANOIREvision.com :: MaxPayneVision.com
NetVisionWork.NET
.: © 2006-2014 by GTAvision.com :.

Rockstar GamesTake-Two Interactive Deutschland

Free Grand Theft Auto Downloads