Jump to content
  • 0

pomoc ak buchne auto nezapočíta


BlueSk

Dotaz

Zdravim mam problém s derby ak je v derby a mu buchne auto tak ho to buchne a nezapočíta ho ako mrtvý a ked sme 2-ja v derby a som bugnuty tak sa musim odpojiť sa pripojiť aby ten hráč výhral tu je kod on player death

   new string[256];
if(playerinderby[playerid] == 1)
{
 new DerbyPlayerName[MAX_PLAYER_NAME];
 GetPlayerName(playerid, DerbyPlayerName, sizeof(DerbyPlayerName));
 format(string, sizeof(string), "Vypadol si z derby a získal si: %d", derbyrank);
 SendClientMessage(playerid,0x33AA33AA, string);
 playerinderby[playerid] = 0;
 bloodringfull[playerinbloodring[playerid]] = 0;
 playerinbloodring[playerid] = -1;
 if(derbyrank <= 2)
 {
  for(new i=0; i<MAX_PLAYERS; i++)
  {
   if (IsPlayerConnected(i) && playerinderby[i] == 1)
   {
    new winnername[256];
 GetPlayerName(i,winnername, sizeof(winnername));
 RewardCalc(i,100,1000);
 format(string, sizeof(string), "%s vyhral derby a získal $%d", winnername, reward);
 SendClientMessageToAll(0x33AA33AA, string);
 GivePlayerMoney(i,reward);
 playerinderby[i] = 0;
 SetPlayerVirtualWorld(i,0);
 SetPlayerInterior(playerid, 0);
 SetPlayerPos(i, spawnX, spawnY, spawnZ);
   }
  }
  derbyplaying = 0;
  derbyrank = 0;
  derbyon = 0;
  KillTimer(dtimer);
  Respawnbloodrings();
  return 1;
 }
 derbyrank--;
}

 

Help čo to nikto nevie?

 

Prosím help !!

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

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