Isti public ali ga ne znam spojiti :(

Započeo Jiky, April 10, 2020, 20:32:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Imam 2 ista publica koja zelim spojiti u jedan , isti su public-ovi[pawn]public OnPlayerDeath(playerid, killerid, reason)
{
   if(GetPlayerWantedLevel(playerid)== 0)
   {
       GivePlayerMoney(playerid,-500);
      if(GetPlayerWantedLevel(playerid)== 3)
      {
         GivePlayerMoney(playerid,-1500);
      }
      else return GivePlayerMoney(playerid,-3000);
   }
   return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
   if(gTeam[killerid] == TEAM_COPS)
   {
       if(gTeam[playerid] == TEAM_COPS)
       {
           SendClientMessage(killerid,COLOR_BLUE,"[SERVER]{AA3333}Team Killing nije dozvoljen! Oduzeta su ti sva oruzja!");
           ResetPlayerWeapons(killerid);
      }
      else
      {
          if(GetPlayerWantedLevel(playerid)== 0)
          {
              SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Ubio si nevinog igraca!");
              ResetPlayerWeapons(killerid);
         }
         else if(GetPlayerWantedLevel(playerid) == 3) return SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Igrace sa WL 3 ili manje se nesmiju ubiti!");
         else return GivePlayerMoney(killerid,3000);
      }
   }
   else
   {
       if(GetPlayerWantedLevel(killerid) == 0 || GetPlayerWantedLevel(killerid) == 3)
      {
          SetPlayerWantedLevel(killerid,6);
          SetPlayerColor(killerid,COLOR_RED);
          GivePlayerMoney(killerid,1500);
          SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Pocinio si teski zlocin. Wanted Level: 6!");
      }
      else return GivePlayerMoney(killerid,1500);
   }
   return 1;[/pawn]

[pawn]
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerWantedLevel(playerid)== 0)
   {
       GivePlayerMoney(playerid,-500);
      if(GetPlayerWantedLevel(playerid)== 3)
      {
         GivePlayerMoney(playerid,-1500);
      }
      else return GivePlayerMoney(playerid,-3000);
   }
   
   if(gTeam[killerid] == TEAM_COPS)
   {
       if(gTeam[playerid] == TEAM_COPS)
       {
           SendClientMessage(killerid,COLOR_BLUE,"[SERVER]{AA3333}Team Killing nije dozvoljen! Oduzeta su ti sva oruzja!");
           ResetPlayerWeapons(killerid);
      }
      else
      {
          if(GetPlayerWantedLevel(playerid)== 0)
          {
              SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Ubio si nevinog igraca!");
              ResetPlayerWeapons(killerid);
         }
         else if(GetPlayerWantedLevel(playerid) == 3) return SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Igrace sa WL 3 ili manje se nesmiju ubiti!");
         else return GivePlayerMoney(killerid,3000);
      }
   }
   else
   {
       if(GetPlayerWantedLevel(killerid) == 0 || GetPlayerWantedLevel(killerid) == 3)
      {
          SetPlayerWantedLevel(killerid,6);
          SetPlayerColor(killerid,COLOR_RED);
          GivePlayerMoney(killerid,1500);
          SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Pocinio si teski zlocin. Wanted Level: 6!");
      }
      else return GivePlayerMoney(killerid,1500);
   }
   return 1;
}
[/pawn]
»Sve što je na Zemlji, prolazno je...«

Citat: |Gagi| poslato April 10, 2020, 20:36:24 POSLE PODNE
[pawn]
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerWantedLevel(playerid)== 0)
   {
       GivePlayerMoney(playerid,-500);
      if(GetPlayerWantedLevel(playerid)== 3)
      {
         GivePlayerMoney(playerid,-1500);
      }
      else return GivePlayerMoney(playerid,-3000);
   }
   
   if(gTeam[killerid] == TEAM_COPS)
   {
       if(gTeam[playerid] == TEAM_COPS)
       {
           SendClientMessage(killerid,COLOR_BLUE,"[SERVER]{AA3333}Team Killing nije dozvoljen! Oduzeta su ti sva oruzja!");
           ResetPlayerWeapons(killerid);
      }
      else
      {
          if(GetPlayerWantedLevel(playerid)== 0)
          {
              SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Ubio si nevinog igraca!");
              ResetPlayerWeapons(killerid);
         }
         else if(GetPlayerWantedLevel(playerid) == 3) return SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Igrace sa WL 3 ili manje se nesmiju ubiti!");
         else return GivePlayerMoney(killerid,3000);
      }
   }
   else
   {
       if(GetPlayerWantedLevel(killerid) == 0 || GetPlayerWantedLevel(killerid) == 3)
      {
          SetPlayerWantedLevel(killerid,6);
          SetPlayerColor(killerid,COLOR_RED);
          GivePlayerMoney(killerid,1500);
          SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Pocinio si teski zlocin. Wanted Level: 6!");
      }
      else return GivePlayerMoney(killerid,1500);
   }
   return 1;
}
[/pawn]
hvala!

Citat: |Gagi| poslato April 10, 2020, 20:36:24 POSLE PODNE
[pawn]
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerWantedLevel(playerid)== 0)
   {
       GivePlayerMoney(playerid,-500);
      if(GetPlayerWantedLevel(playerid)== 3)
      {
         GivePlayerMoney(playerid,-1500);
      }
      else return GivePlayerMoney(playerid,-3000);
   }
   
   if(gTeam[killerid] == TEAM_COPS)
   {
       if(gTeam[playerid] == TEAM_COPS)
       {
           SendClientMessage(killerid,COLOR_BLUE,"[SERVER]{AA3333}Team Killing nije dozvoljen! Oduzeta su ti sva oruzja!");
           ResetPlayerWeapons(killerid);
      }
      else
      {
          if(GetPlayerWantedLevel(playerid)== 0)
          {
              SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Ubio si nevinog igraca!");
              ResetPlayerWeapons(killerid);
         }
         else if(GetPlayerWantedLevel(playerid) == 3) return SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Igrace sa WL 3 ili manje se nesmiju ubiti!");
         else return GivePlayerMoney(killerid,3000);
      }
   }
   else
   {
       if(GetPlayerWantedLevel(killerid) == 0 || GetPlayerWantedLevel(killerid) == 3)
      {
          SetPlayerWantedLevel(killerid,6);
          SetPlayerColor(killerid,COLOR_RED);
          GivePlayerMoney(killerid,1500);
          SendClientMessage(killerid,COLOR_WHITE,"[SERVER]{AA3333}Pocinio si teski zlocin. Wanted Level: 6!");
      }
      else return GivePlayerMoney(killerid,1500);
   }
   return 1;
}
[/pawn]
aj proveri mi i ostale teme , bas mi treba pomoc novi sam