Szerző Téma: nem vált a mappon  (Megtekintve 357 alkalommal)

nem vált a mappon
« Dátum: 2012. február 22. - 11:45:07 »
0 Show voters
sziasztok
a segítségeteket kérném mer gõzöm sincs h mivan
na a problémám h 2 mappot megcsináltam és a 3. ra nem vált rá hanem 2 váltogatja
pedig ugyan úgy csináltam mint a másik kettõt...szal nemértem
íme :
[pawn]public OnPlayerRequestClass(playerid, classid)
{
if(Map == 0)
{
   SetPlayerPos(playerid,2773.26, -2480.025, 41.78);
   SetPlayerCameraPos(playerid,2764.15, -2482.38, 47.10);
   SetPlayerCameraLookAt(playerid,2773.26, -2480.025, 41.78);
   SetPlayerFacingAngle(playerid, 270.0);
}
else if(Map == 1)
{
   SetPlayerPos(playerid,144.5, 1564.5, 34.5);
   SetPlayerCameraPos(playerid,144.5, 1572, 35);
   SetPlayerCameraLookAt(playerid,144.5, 1564.5, 34.5);
   SetPlayerFacingAngle(playerid, 0.00);
}
else if(Map == 3)
{
   SetPlayerPos(playerid,143.4, 1563.4, 33.4);
   SetPlayerCameraPos(playerid,143.4, 1563.4, 33.4);
   SetPlayerCameraLookAt(playerid,143.4, 1563.4, 33.4);
   //SetPlayerFacingAngle(playerid, 270.00);
}
return 1;
}[/pawn]
[pawn]public OnPlayerSpawn(playerid)
{
    new msg[128];
format(msg, sizeof(msg),\"~g~Groove~w~: ~y~%i~n~~g~Aztec~w~: ~y~%i\", TeamScore1, TeamScore2);
TextDrawShowForPlayer(playerid, ScoreTD[playerid]);
TextDrawSetString(ScoreTD[playerid], msg);
if(Team[playerid] == 1)
{
    SetPlayerTeam(playerid, 1);
    SetPlayerColor(playerid, YELLOW);
   SetPlayerHealth(playerid, 100);
   GivePlayerWeapon(playerid, 4, 1);
   HasSpawned[playerid] = 1;
   TextDrawShowForPlayer(playerid, TeamTD[playerid]);
   TextDrawSetString(TeamTD[playerid], \"~g~csapat~w~: ~y~Groove\");
   if(Map == 0)
   {
      SetPlayerPos(playerid, 2841.5, -2369.5, 31);
      SetPlayerWorldBounds(playerid, 2855, 2817,-2322, -2549);
   }
   else if(Map == 1)
   {
       SetPlayerPos(playerid, 285.75, 1340, 10.6);
       SetPlayerWorldBounds(playerid, 288.75, 110.25, 1485, 1335.75);
   }
   else if(Map == 3)
   {
       SetPlayerPos(playerid, 2545.777, -2405.642, 15);
       SetPlayerWorldBounds(playerid, 2836.069, 2425.363, -2258.232, -2581.947);
   }
   if(NeedTeam[playerid] == 1)
   {
      groove ++;
      NeedTeam[playerid] = 0;
   }
}
if(Team[playerid] == 2)
{
    SetPlayerTeam(playerid, 2);
       SetPlayerColor(playerid, GREEN);
   SetPlayerHealth(playerid, 100);
   GivePlayerWeapon(playerid, 4, 1);
   HasSpawned[playerid] = 1;
   TextDrawShowForPlayer(playerid, TeamTD[playerid]);
   TextDrawSetString(TeamTD[playerid], \"~g~csapat~w~: ~y~Aztec\");
   if(Map == 0)
   {
      SetPlayerPos(playerid, 2841.5, -2540.5, 18.5);
            SetPlayerWorldBounds(playerid, 2855, 2817,-2322, -2549);
   }
   else if(Map == 1)
   {
      SetPlayerPos(playerid, 113, 1480, 10.6);
      SetPlayerWorldBounds(playerid, 288.75, 110.25, 1485, 1335.75);
   }
   else if(Map == 3)
   {
      SetPlayerPos(playerid,  2791.012, -2487.387, 15);
      SetPlayerWorldBounds(playerid, 2836.069, 2425.363, -2258.232, -2581.947);
   }
   if(NeedTeam[playerid] == 1)
   {
      aztec ++;
      NeedTeam[playerid] = 0;
   }
}
return 1;
}[/pawn]
[pawn]public UpdateTimeRemaining(playerid)
{
if(TimeRemaining[playerid] > 0)
{
   new msg[128];
   TimeRemaining[playerid]--;
   format(msg, sizeof(msg), \"~2~Hátralévõ idõ~w~: ~y~%i\", TimeRemaining[playerid]);
   TextDrawShowForPlayer(playerid, TimeRemainingTD[playerid]);
   TextDrawSetString(TimeRemainingTD[playerid], msg);
   SetTimerEx(\"ujapajatimer\", 1000, 0, \"i\", playerid);
}
else
{
   if(Map == 0)
   {
      SetPlayerWorldBounds(playerid, 2855, 2817,-2322, -2549);
   }
   else if(Map == 1)
   {
      SetPlayerWorldBounds(playerid, 288.75, 110.25, 1485, 1335.75);
   }
   else if(Map == 3)
   {
      SetPlayerWorldBounds(playerid, 2836.069, 2425.363, -2258.232, -2581.947);
   }
}
}
[/pawn]
[pawn]public OnPlayerCommandText(playerid, cmdtext[])
{
new Float:PX;
new Float:PY;
new Float:PZ;
GetPlayerPos(playerid, PX, PY, PZ);
if (strcmp(\"/ujmap\", cmdtext, true) == 0)
{
   if(IsPlayerAdmin(playerid))
   {
      if(Map == 0)
      {
         TeamScore1 = 0;
         TeamScore2 = 0;
         Map = 1;
      }
      else if(Map == 1)
      {
         TeamScore1 = 0;
         TeamScore2 = 0;
         Map = 0;
      }
      else if(Map == 3)
      {
         TeamScore1 = 0;
         TeamScore2 = 0;
         Map = 3;
      }
       SendClientMessage(playerid, GREEN, \"Kovetkezo palya !\");
         GameTextForAll(\"Kovetkezo palya !\", 5000, 6);
      foreach(Player, i)
      {
         PlayerKills = 0;

         ForceClassSelection(i);


         SetPlayerHealth(i, 0);


      }


   }


   return 1;


}[/pawn]


vagy aki így nemtudja vegyen fel msn-re


köszönöm


most vettem észre h bennhagytam a if(Map == 3) de eleinte if(Map == 2) volt csak próbaképp írtam át de úgy sem volt jó
« Utoljára szerkesztve: 2012. február 22. - 11:51:06 írta norbee0170 »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal