[Pomoc] Start i port na event.

Započeo Darko, Decembar 21, 2010, 15:56:29 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ovako , ja i frend smo radili to..

neznam gdje gresimo niti nista , ja sam ziva 0 u pawno tak da :D

ovako....

kada prozovem igrace na event , sve ljepo prozove...

krene odbrojavanje i onda samo porta mene ?...

nasumicni spawn je.... evo kodovi


forward
forward TrkaStart();
forward TrkaStart1();
forward TrkaStart2(playerid);


new
new Float:NasumicniSpawn[][] =
{
    {2336.4504, -2620.9380, 16.6715, 44.5689},
    {2334.9507, -2605.2227, 16.7560, 181.0151},
    {2316.5720, -2607.4248, 16.7560, 237.8974}
};


prozivka i start



if(strcmp(cmd, "/k1", true) == 0)
{
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mr. Fox kaze : /k1 [id]  ako zelis nekoga pozvati na K1.");
      return 1;
   }
   new hPozvanigracid;
   hPozvanigracid = ReturnUser(tmp);
   if(IsPlayerConnected(hPozvanigracid))
   {
      Trka[hPozvanigracid] = 1;
      SendClientMessage(hPozvanigracid, COLOR_LIGHTBLUE, "Mr. Fox kaze : Pozvan si na trku! Pripremi se i pricekaj start.");
   }
   else
   {
      SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mr. Fox kaze : Krivi id si odabrao , pogledaj ponovno.");
   }
   return 1;
}


if(strcmp(cmd, "/k1start", true) == 0)
{
SetTimer("TrkaStart",1000,0);
GameTextForPlayer(playerid, "3", 1000, 3);
return 1;
  }


public

public TrkaStart()
{
   for(new h; h < MAX_PLAYERS; h++)
   {
      if(Trka[h] == 1)
      {
         SetTimer("TrkaStart1",1000,0);
         GameTextForPlayer(h, "2", 1000, 3);
      }
   }
   return 1;
}

public TrkaStart1()
{
   for(new h; h < MAX_PLAYERS; h++)
   {
      if(Trka[h] == 1)
      {
         SetTimer("TrkaStart2",1000,0);
         GameTextForPlayer(h, "1", 1000, 3);
      }
   }
   return 1;
}

public TrkaStart2(playerid)
{
   for(new h; h < MAX_PLAYERS; h++)
   {
      if(Trka[h] == 1)
      {
         GameTextForPlayer(h, "Start!", 1000, 3);
         new spawn = random(sizeof(NasumicniSpawn));
             SetPlayerPos(playerid, NasumicniSpawn[spawn][0], NasumicniSpawn[spawn][1], NasumicniSpawn[spawn][2]);
             SetPlayerFacingAngle(playerid, NasumicniSpawn[spawn][3]);
         GivePlayerWeapon(h, 29, 1000);
      }
   }
   return 1;
}


black_dota

new Float:NasumicniSpawn[][] = 
   { 
       {2336.4504, -2620.9380, 16.6715, 44.5689, 
       {2334.9507, -2605.2227, 16.7560, 181.0151}, 
       {2316.5720, -2607.4248, 16.7560, 237.8974} 
   }; 

stavi ovo

new Float:NasumicniSpawn[][] = 
   { 
       {2336.4504, -2620.9380, 16.6715, 44.5689}, 
       {2334.9507, -2605.2227, 16.7560, 181.0151}, 
       {2316.5720, -2607.4248, 16.7560, 237.8974} 
   }; 

edit: a evo vidim sredili ste