Pomoc!

Započeo Jiky, April 10, 2020, 20:19:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

[pawn]public timer2(playerid)
{
   new msg[128];
   new money = random(10000);
   GivePlayerMoney(playerid,money);
   format(msg,sizeof(msg),"[SERVER]Uspjesno si opljackao radnju, opljackao si $%d ..");
   SendClientMessage(playerid,COLOR_WHITE,msg);
   TogglePlayerControllable(playerid,1);
   SetPlayerWantedLevel(playerid,6);
}
   
[/pawn]
Zelim da [SERVER] bude bjelom a ostatak crvenom {AA3333}

Takodjer..[pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if(newkeys & KEY_SECONDARY_ATTACK)
   {
       if(IsPlayerInRangeOfPoint(playerid,2.0,-2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
      else if(IsPlayerInRangeOfPoint(playerid,2.0,-25.884498,-185.868988,1003.546875))
      {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,-2103.8525,-2342.0149,30.6172);
          SetCameraBehindPlayer(playerid);
          SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dovidjenja!");
      }
   }
   return 1;
}
[/pawn]

kako da radim jos radnje .. ne znam kako da produzim pisanjem koordinatima ...

Vidim, pocetnik si, ako, samo nastavi uporan rad samo i stici ces do cilja!

[pawn]format(msg,sizeof(msg),"{FFFFFF}[SERVER]{AA3333}Uspjesno si opljackao radnju, opljackao si $%d ..");[/pawn]

[pawn]
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if(newkeys & KEY_SECONDARY_ATTACK)
   {
       if(IsPlayerInRangeOfPoint(playerid,2.0,-2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
      else if(IsPlayerInRangeOfPoint(playerid,2.0,-25.884498,-185.868988,1003.546875))
      {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,-2103.8525,-2342.0149,30.6172);
          SetCameraBehindPlayer(playerid);
          SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dovidjenja!");
      }
      
      //novi range koji hoces postavi
      if(IsPlayerInRangeOfPoint(playerid,2.0,-2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
      else if(IsPlayerInRangeOfPoint(playerid,2.0,-25.884498,-185.868988,1003.546875))
      {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,-2103.8525,-2342.0149,30.6172);
          SetCameraBehindPlayer(playerid);
          SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dovidjenja!");
      }
      
      //novi range koji hoces postavi itd itd itd
      if(IsPlayerInRangeOfPoint(playerid,2.0,-2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
      else if(IsPlayerInRangeOfPoint(playerid,2.0,-25.884498,-185.868988,1003.546875))
      {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,-2103.8525,-2342.0149,30.6172);
          SetCameraBehindPlayer(playerid);
          SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dovidjenja!");
      }
   }
   return 1;
}
[/pawn]
Poslednja Izmena: April 10, 2020, 20:52:48 POSLE PODNE od |Gagi|
»Sve što je na Zemlji, prolazno je...«

Citat: |Gagi| poslato April 10, 2020, 20:51:10 POSLE PODNE
Vidim, pocetnik si, ako, samo nastavi uporan rad samo i stici ces do cilja!

[pawn]format(msg,sizeof(msg),"{FFFFFF}[SERVER]{AA3333}Uspjesno si opljackao radnju, opljackao si $%d ..");[/pawn]

[pawn]
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if(newkeys & KEY_SECONDARY_ATTACK)
   {
       if(IsPlayerInRangeOfPoint(playerid,2.0,-2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
      else if(IsPlayerInRangeOfPoint(playerid,2.0,-25.884498,-185.868988,1003.546875))
      {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,-2103.8525,-2342.0149,30.6172);
          SetCameraBehindPlayer(playerid);
          SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dovidjenja!");
      }
      
      //novi range koji hoces postavi
      if(IsPlayerInRangeOfPoint(playerid,2.0,-2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
      else if(IsPlayerInRangeOfPoint(playerid,2.0,-25.884498,-185.868988,1003.546875))
      {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,-2103.8525,-2342.0149,30.6172);
          SetCameraBehindPlayer(playerid);
          SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dovidjenja!");
      }
      
      //novi range koji hoces postavi itd itd itd
      if(IsPlayerInRangeOfPoint(playerid,2.0,-2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
      else if(IsPlayerInRangeOfPoint(playerid,2.0,-25.884498,-185.868988,1003.546875))
      {
          SetPlayerInterior(playerid,0);
          SetPlayerPos(playerid,-2103.8525,-2342.0149,30.6172);
          SetCameraBehindPlayer(playerid);
          SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dovidjenja!");
      }
   }
   return 1;
}
[/pawn]
Zasto da dupla ???
Kad moze i ovako samo na drugi isplayerinrange druge kordinate od neceg drugog

if(IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172) || IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172))
AKO ZNAS ZA BOGA I ZA GLAVU ZIVU NE BRANI MI DOKTORE RAKIJU I PIVU

Citat: Lestra_Dev poslato April 10, 2020, 21:00:17 POSLE PODNE
Zasto da dupla ???
Kad moze i ovako samo na drugi isplayerinrange druge kordinate od neceg drugog

if(IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172) || IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172))

To je ok ako ima vise marketa, a sta ako covek hoce gunshop? da mu pise market dobrodosli...
»Sve što je na Zemlji, prolazno je...«

Citat: |Gagi| poslato April 10, 2020, 21:27:23 POSLE PODNE
To je ok ako ima vise marketa, a sta ako covek hoce gunshop? da mu pise market dobrodosli...
Pa nek stavi [FIRMA] dobrodosli tako nesto
AKO ZNAS ZA BOGA I ZA GLAVU ZIVU NE BRANI MI DOKTORE RAKIJU I PIVU

Citat: Lestra_Dev poslato April 10, 2020, 21:31:11 POSLE PODNE
Pa nek stavi [FIRMA] dobrodosli tako nesto

[pawn]
if(IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172) || IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
[/pawn]
ajde majstore uradi da kad je igrac ispred marketa da ispise jednu poruku, a kad je kod gunshopa drugu, "nek stavi firma.." ajde ubaci, uradis li tako kako si rekao i da radi, brisem acc :D
»Sve što je na Zemlji, prolazno je...«

Citat: |Gagi| poslato April 10, 2020, 21:39:00 POSLE PODNE
[pawn]
if(IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172) || IsPlayerInRangeOfPoint(playerid,2.0, -2103.8525,-2342.0149,30.6172))
       {
           SetPlayerInterior(playerid,17);
           SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
           SetCameraBehindPlayer(playerid);
           SendClientMessage(playerid,COLOR_WHITE,"[MARKET]{33CCFF}Dobrodosli!");
      }
[/pawn]
ajde majstore uradi da kad je igrac ispred marketa da ispise jednu poruku, a kad je kod gunshopa drugu, "nek stavi firma.." ajde ubaci, uradis li tako kako si rekao i da radi, brisem acc :D
Nisam ni vidio ovo samo ne znam sta on radi posebno pravi ulaze za sve markete/firme na modu wtf
AKO ZNAS ZA BOGA I ZA GLAVU ZIVU NE BRANI MI DOKTORE RAKIJU I PIVU