Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Ante_Dracar aka Lopa poslato Jun 21, 2010, 20:35:53 POSLE PODNE

Naslov: placanje
Poruka od: Ante_Dracar aka Lopa poslato Jun 21, 2010, 20:35:53 POSLE PODNE
ovako ljudi reba mi pomoc u vezi placanja,,,napravio sam granicu i sada me zanima kako kada neko upise /sfo damu se to naplati npr 1000$$
Naslov: Odg: placanje
Poruka od: ivicaa poslato Jun 21, 2010, 20:43:22 POSLE PODNE
GivePlayerMoney -1000
tak nest sada sam na laptopu pa nezz tocno
Naslov: Odg: placanje
Poruka od: ΉΥPΣЯΛƬӨЯ poslato Jun 21, 2010, 20:45:32 POSLE PODNE
Dodaš tu u komandu
GivePlayerMoney(playerid, -1000)
Naslov: Odg: placanje
Poruka od: Ante_Dracar aka Lopa poslato Jun 21, 2010, 21:42:02 POSLE PODNE
samo taj 1 red...

evo mi komanda pa gdje da tp stavim...
//-------------------------------granice--------------------------------------

if(strcmp(cmd,"/lso",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
    {
MoveObject(Granica2, 20.162437438965, -1518.6613769531, 16.009059906006,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Otvarate granicu izmedju LS-SF.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ukoliko imate problema obratite se adminima-gamemasterima.");
}
return 1;
}
if(strcmp(cmd,"/lsz",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
    {
MoveObject(Granica2, 20.471881866455, -1518.8791503906, 6.0306377410889,7.000 );

SendClientMessage(playerid, COLOR_GREEN, "Zatvarate granicu izmedju LS-SF.");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Ukoliko imate problema obratite se adminima-gamemasterima.");
}
return 1;
}
Naslov: Odg: placanje
Poruka od: Lumpri77 poslato Jun 21, 2010, 22:03:49 POSLE PODNE
//-------------------------------granice--------------------------------------

if(strcmp(cmd,"/lso",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
    {
MoveObject(Granica2, 20.162437438965, -1518.6613769531, 16.009059906006,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Otvarate granicu izmedju LS-SF.");
SendClientMessage(playerid, COLOR_GREEN, "Prelaz preko granice vas je koštao 1000$.");
           GivePlayerMoney(playerid, -1000)
                      }
else
{
SendClientMessage(playerid, COLOR_RED, "Ukoliko imate problema obratite se adminima-gamemasterima.");
}
return 1;
}
if(strcmp(cmd,"/lsz",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
    {
MoveObject(Granica2, 20.471881866455, -1518.8791503906, 6.0306377410889,7.000 );

SendClientMessage(playerid, COLOR_GREEN, "Zatvarate granicu izmedju LS-SF.");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Ukoliko imate problema obratite se adminima-gamemasterima.");
}
return 1;
}


evo to ti je da kad se otvore vrata granice da se može prječ potrošiče 1000$ i pisače ukoliko imate problema obratite se admin...i prelaz preko granice vas je koštao 1000$

nadam se da sam pomogao
Naslov: Odg: placanje
Poruka od: ivicaa poslato Jun 21, 2010, 22:05:48 POSLE PODNE
//-------------------------------granice--------------------------------------

   if(strcmp(cmd,"/lso",true)==0)
   {
       if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
       {
         MoveObject(Granica2, 20.162437438965, -1518.6613769531, 16.009059906006,7.000);
         SendClientMessage(playerid, COLOR_GREEN, "Otvarate granicu izmedju LS-SF.");
                        GivePlayerMoney(playerid, -1000) //stavi koliko oces
      }
      else
      {
         SendClientMessage(playerid, COLOR_RED, "Ukoliko imate problema obratite se adminima-gamemasterima.");
      }
      return 1;
   }
   if(strcmp(cmd,"/lsz",true)==0)
   {
       if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
       {
         MoveObject(Granica2, 20.471881866455, -1518.8791503906, 6.0306377410889,7.000 );

         SendClientMessage(playerid, COLOR_GREEN, "Zatvarate granicu izmedju LS-SF.");
      }
      else
      {
         SendClientMessage(playerid, COLOR_GREEN, "Ukoliko imate problema obratite se adminima-gamemasterima.");
      }
      return 1;
   }
Naslov: Odg: placanje
Poruka od: Ante_Dracar aka Lopa poslato Jun 22, 2010, 18:32:14 POSLE PODNE
Evo ljudi napravio sam ovo i radi 100%,ali imo sam u pocetku erroera ali sam sve rjesio,ali imam ovaj vaning...



C:\Users\Bill Gates\Desktop\SAMP\lopin serevr\gamemodes\cmr.pwn(10800) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Header size:           6668 bytes
Code size:          1330192 bytes
Data size:          4523264 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5103 cells (20412 bytes)
Total requirements: 5876508 bytes

1 Warning.


evo komanda..
//-------------------------------granice--------------------------------------

if(strcmp(cmd,"/sf3o",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
    {
MoveObject(granica3,-30.9150390625, -1331.6973876953, 10.024829864502,7.000 );
SendClientMessage(playerid, COLOR_GREEN, "Otvarate granicu izmedju LS-SF.");
                   GivePlayerMoney(playerid, -1000);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ukoliko imate problema obratite se adminima-gamemasterima.");
}
return 1;
}
if(strcmp(cmd,"/sf3z",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 11)
    {
MoveObject(granica3,-23.297950744629, -1341.5887451172, 10.614755630493,7.000 );

SendClientMessage(playerid, COLOR_GREEN, "Zatvarate granicu izmedju LS-SF ");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Ukoliko imate problema obratite se adminima-gamemasterima.");
}
return 1;
}



ako vidite di sam fali,recite mrzim vidit warninge
Naslov: Odg: placanje
Poruka od: ΉΥPΣЯΛƬӨЯ poslato Jun 22, 2010, 18:51:49 POSLE PODNE
Neznam jeli to do foruma ili ne, ali ako nije onda pomakni give player mani tačno ispod SendCilent message tj da počinje ispod slova S
Naslov: Odg: placanje
Poruka od: Ante_Dracar aka Lopa poslato Jun 22, 2010, 21:26:05 POSLE PODNE
kralju tnx,sve sam pokusavao osim ovoga xD,tnx