Jump to content
  • 0

pomoc Spawn


XxM4st3rxX

Dotaz

čaute robím si mód a mám v ňom tento kód

 

	
if(gTeam[playerid] == T_DOZ_VNUTRO)
{
if(PlayerInfo[playerid][pBody] < 5000)
{
InfoTextDrawCreate ( playerid, "Nemas 5000 bodov!"  );
} else {
if(PlayerInfo[playerid][pBody] > 5000)
{
SetPlayerColor(playerid, COL_DOZVNUTRO);
SetPlayerPos(playerid, 1849.32995605,-1714.31005859,5201.54003906);
}

 

a aj keď nemám 5000 bodov tak ma spawne a vytvorí textdraw "nemas 5000 bodov"

a keď mám viac ako 5000 tak ma to normálne spawne

 

ďakujem za každú radu ;)

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

Zkus:

if(gTeam[playerid] == T_DOZ_VNUTRO)
  {
  if(PlayerInfo[playerid][pBody] < 5000) return InfoTextDrawCreate ( playerid, "Nemas 5000 bodov!"  );
  else if(PlayerInfo[playerid][pBody] > 5000)
  {
  SetPlayerColor(playerid, COL_DOZVNUTRO);
  SetPlayerPos(playerid, 1849.32995605,-1714.31005859,5201.54003906);
  }
}

Link to comment
Share on other sites

  • 0

if(gTeam[playerid] == T_DOZ_VNUTRO)

   {

   if(PlayerInfo[playerid][pBody] < 5000)

   {

   InfoTextDrawCreate ( playerid, "Nemas 5000 bodov!"  );

   return 0;

   } else {

   SetPlayerColor(playerid, COL_DOZVNUTRO);

   SetPlayerPos(playerid, 1849.32995605,-1714.31005859,5201.54003906);

   return 1;

   }

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...