placanje

Započeo Ante_Dracar aka Lopa, Jun 21, 2010, 20:35:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

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

ivicaa

GivePlayerMoney -1000
tak nest sada sam na laptopu pa nezz tocno

Dodaš tu u komandu
GivePlayerMoney(playerid, -1000)

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;
}

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

ivicaa

//-------------------------------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;
   }

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

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

kralju tnx,sve sam pokusavao osim ovoga xD,tnx