Jump to content
  • 0

pomoc Team


MrBeNy

Dotaz

Zdravim,

Mam dotaz jak udelat Spawny podle ID,kdyz bude napr.: Vezen aby se respawnovaly kazdy na svem miste ... id 1 na 1 miste a id 2 na druhem miste, ale aby kdyz si zvoli jiny team napr.: Dozorce aby se respawnovaly vsichni dozorci na jednom miste... ja kdyz semto nejak do sebe poskladal tak kdyz nekdo umrel nebo se pripojil tak se vscihni respawnuly znovu ...a i Dozorce to hazelo do vezeni... ?

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

  • 0

zkus do OnPlayerSpawn

 

if(team[playerid] == DOZORCE)
{
switch(playerid)
{
case 0: SetPlayerPos // ID 0
case 1: SetPlayerPos // ID 1
case 2: SetPlayerPos // ID 2
case 3: SetPlayerPos // ID 3
case 4: SetPlayerPos // ID 4
}
} else {
switch(playerid)
case 0: bla bla
}

Nezkousel jsem x)

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...