placanje

21. Jun 2010.
1,073
pregleda
9
postova
lopalopa
4
Enforcer
21. Jun 2010.
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$$
Deleted User
Obrisan korisnik
21. Jun 2010.
GivePlayerMoney -1000
tak nest sada sam na laptopu pa nezz tocno
elmedin
5
Kingpin
21. Jun 2010.
Dodaš tu u komandu
GivePlayerMoney(playerid, -1000)
lopalopa
4
Enforcer
21. Jun 2010.
samo taj 1 red...

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

if(strcmp(cmd,"/lso",true)==0)
{
    if(PlayerInfo == 0||PlayerInfo == 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 == 0||PlayerInfo == 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;
}
lumpri
4
Enforcer
21. Jun 2010.
//-------------------------------granice--------------------------------------

if(strcmp(cmd,"/lso",true)==0)
{
    if(PlayerInfo == 0||PlayerInfo == 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 == 0||PlayerInfo == 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
Deleted User
Obrisan korisnik
21. Jun 2010.
//-------------------------------granice--------------------------------------

if(strcmp(cmd,"/lso",true)==0)
{
    if(PlayerInfo == 0||PlayerInfo == 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 == 0||PlayerInfo == 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;
}
lopalopa
4
Enforcer
22. Jun 2010.
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 == 0||PlayerInfo == 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 == 0||PlayerInfo == 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
elmedin
5
Kingpin
22. Jun 2010.
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
lopalopa
4
Enforcer
22. Jun 2010.
kralju tnx,sve sam pokusavao osim ovoga xD,tnx

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha