Jump to content
  • 0

pomoc Nastavní Pozice + Timer


TheKid

Dotaz

Čau , mám uděláno že pokud dám příkaz /sround (start - round) tak se nejdříve na 5 sekund objeví camera která ukazuje na místo kde je CP a pak se ma zijsit jestli je hráč attacter nebo defender a podle toho ho spawnout ale vzdy ho to po tech 5 sekundach spawne jako attactra :(

 

Zde je kod timeru

public camtimer()
{
	 static x = 0;
	 x++;
  if(x = 5)
  {
  for(new i = 0; i < GetMaxPlayers(); i++)
  if(gTeam[i] = defend)
  {
  SetPlayerPos(i,-1437,148.6,6.7);
  SetCameraBehindPlayer(i);
  }
  for(new i = 0; i < GetMaxPlayers(); i++)
  if(gTeam[i] = attact)
  {
  SetPlayerPos(i,-1552,496.6,6.7);
  SetCameraBehindPlayer(i);
  }
  }
	 return 1;
}

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

hod jsem všechny newy a definice s timhle souvisejícím a všechno no ten timer nemusíš :d

 

Chtěl bych to udělat tak že pokud dam nějakej příkaz (např./startround) tak aby to na 5 s zamerilo kameru na urcity pohled a pak to hrace spawnulo podle teamu (defenders do lode , attacters k mostu).Ten muj kod nak nefunguje :(

 

Vyreseno *LOCK* thx all

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...