"Trebam nešto" - tema

Započeo Correlli, Jul 30, 2010, 15:11:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 8 gostiju pregledaju ovu temu.

Citat: System32 poslato Jul 23, 2011, 19:25:32 POSLE PODNE
Citat: Partybreaker poslato Jul 23, 2011, 19:12:10 POSLE PODNE
Citat: System32 poslato Jul 23, 2011, 19:07:29 POSLE PODNE
pa u toj funkciji imas koordinate, daj tu funkciju

Kazem ti ,u toj funkciji nisu definisane koordinate,tako da mi uvjek izbaci poruku "niste u blizini zatvora blablabla"

Shvatas sta hocu da kazem ?

Ako neko moze da mi da njegovu ZCMD komandu arrest,bio bih zahvalan. :)
samo daj funkciju

Ne postoji funkcija,zato mi i ne radi komanda.  :S


Server IP: 193.192.58.82:7782
Forum: www.balkan-underline.info


lol mora biti imance bi imao error

evo ti ovako

Kod (System32) [Izaberi]
CMD:arrest(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cijenah, minuta, jamcevina, cijenajamcevine, razlog[128];
if(sscanf(params, "idiis[128]", cijenah, minuta, jamcevina, cijenajamcevine, razlog))
{
SCM(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /arrest [cijena] [vrijeme (minute)] [jamcevina (0=ne 1=da)] [cijena jamcevine] [razlog]");
SCM(playerid, WHITE, "{168BFF}Razlog mora biti vazeci!");
}
else
if(IsPlayerInRangeOfPoint(playerid, 10.0, tvoje koordirnate))
{
if(IsACop(playerid))
{
if(OnDuty[playerid] == 0) SCM(playerid, COLOR_GREY, "   Nisi na duznosti!");
if(cijenah > 5000 || cijenah < 1) return SCM(playerid, GREY, "Cijena hapsenja ne moze biti preko 5000$ i ispod 1$!");
if(minuta > 31 || minuta < 6) return SCM(playerid, GREY, "Vrijeme pritvora ne moze biti preko 30 minuta i ispod 5 minuta!");
if(jamcevina < 0 || jamcevina > 1) return SCM(playerid, GREY, "Jamcevina mora biti 1(Da) ili 0 (Ne)!");
if(cijenajamcevine > 100000 || cijenajamcevine < 1) return SCM(playerid, GREY, "Cijena jamcevine mora biti izmedju 1$ i 100000$!");
new suspect = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[suspect] < 1) return SendClientMessage(playerid, COLOR_GREY, "   Igrac mora imati barem Wanted Level 1 !");
format(string, sizeof(string), "{198CC6}* Uhapsio si %s | Razlog: %s", giveplayer, razlog);
SCM(playerid, COLOR_LIGHTBLUE, string);
GivePlayerCash(suspect, -cijenah);
format(string, sizeof(string), "Uhapsio te %s ~n~ za $%d", sendername, moneys);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
{
format(string, sizeof(string), "{198CC6}Policajac %s je uhapsio osumnjicenog %s | Razlog: {FF0E0E}%s", sendername, giveplayer, razlog);
OOCNews(COLOR_LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
format(string, sizeof(string), "{198CC6}FBI Agent %s je uhapsio osumnjicenog %s | Razlog: {FF0E0E}%s", sendername, giveplayer, razlog);
OOCNews(COLOR_LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
{
format(string, sizeof(string), "{198CC6}Specijalac %s je uhapsio osumnjicenog %s | Razlog: {FF0E0E}%s", sendername, giveplayer, razlog);
OOCNews(COLOR_LIGHTRED, string);
}
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(suspect, gRandomJailSpawns[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
PlayerInfo[suspect][pJailTime] = minuta * 60;
//SetPlayerWorldBounds(playerid, 1573.528, 1489.865, -1089.701, -1164.708);
if(jamcevina == 1)
{
JailPrice[suspect] = cijenajamcevine;
format(string, sizeof(string), "{198CC6}Pritvoren si na %d sekundi.   Jamcevina: $%d | Razlog: {FF0E0E}%s", PlayerInfo[suspect][pJailTime], JailPrice[suspect], razlog);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
    JailPrice[suspect] = 0;
format(string, sizeof(string), "{198CC6}Pritvoren si na %d sekundi.   Jamcevina: Nedostupna | Razlog: {FF0E0E}%s", PlayerInfo[suspect][pJailTime], razlog);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 1;
        PlayerInfo[suspect][pArrested] += 1;
SetPlayerFree(suspect,playerid, "Uhapsen");
WantedPoints[suspect] = 0;
WantedLevel[suspect] = 0;
WantLawyer[suspect] = 1;
}
else SendClientMessage(playerid, COLOR_GREY, "   Nema nikoga u blizini koga bi mogao uhapsiti.");
}
else SendClientMessage(playerid, COLOR_GREY, "   Nisi dio izvrsnih vlasti !");
}
else SendClientMessage(playerid, COLOR_GREY, "   Nisi kod zatvora !");
return 1;
}
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Treba mi funkcija koja popravlja masku i gume auta(Ne motor vec masku i gume)

Moze li mi neko prebaciti ovu komandu u ZCMD i SSCANF, buni me taj cmdtext, nezz kako to.


if(strcmp(cmd, "/ao", true) == 0)
{
new sendername[MAX_PLAYER_NAME];
new idx;
if (PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "[ERROR]:Moras biti Administrator!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /ao [tekst]");
return 1;
}
format(string, sizeof(string), "{F81414}Administrator{FFFFFF} | {FFFFFF}%s: %s " , sendername, result);
OOCOff(0xFF6347AA,string);
printf("%s", string);
return 1;
}
Poslednja Izmena: Jul 24, 2011, 06:43:59 PRE PODNE od [CRP] Pacijent_

Citat: [CRP] Pacijent_ poslato Jul 24, 2011, 05:38:19 PRE PODNE
Treba mi funkcija koja popravlja masku i gume auta(Ne motor vec masku i gume)

Moze li mi neko prebaciti ovu komandu u ZCMD i SSCANF, buni me taj cmdtext, nezz kako to.


if(strcmp(cmd, "/ao", true) == 0)
{
new sendername[MAX_PLAYER_NAME];
new idx;
if (PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "[ERROR]:Moras biti Administrator!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /ao [tekst]");
return 1;
}
format(string, sizeof(string), "{F81414}Administrator{FFFFFF} | {FFFFFF}%s: %s " , sendername, result);
OOCOff(0xFF6347AA,string);
printf("%s", string);
return 1;
}

evo ti je jos jedanput, ako os pouci cu te ja o sscanfu

Kod (System32) [Izaberi]
CMD:ao(playerid, params[])
{
new tekst[128];
if (PlayerInfo[playerid][pAdmin] < 1)
{
        if(sscanf(params, "s[128]", tekst)) return SendClientMessage(playerid, -1, "KoriÅ¡tenje: /ao [Tekst]");
format(string, sizeof(string), "{F81414}Administrator{FFFFFF} | {FFFFFF}%s: %s " , GetName(playerid), tekst);
OOCOff(0xFF6347AA,string);
printf("%s", string);
}
return 1;
}

stock GetName(playerid)
{
new
    pName[MAX_PLAYER_NAME];

GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
return pName;
}
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

System32, daj mi odgovori u PM za mappanje.
















CitatPhantom´s people: People don't like us. 
Come on, is not easy for us.

Zohan´s people: People don't like us too. 
Phantom´s people: Why!?
Zohan´s people: Because they think we are you.

[quote author=boban1995 link=topic=10788.msg215213#msg215213 date=1311441519]
[code]public PayDay()
{
   
   new string[128];
new account,interest;
new rent = 0;
foreach (Player, i)
{
   if(PlayerInfo[i][pLevel] > 0)
   {
   if(MoneyMessage[i]==1)
{
   SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
   GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
   SetPlayerInterior(i, 6);
   PlayerInfo[i][pInt] = 6;
  SetPlayerPos(i, 264.6288,77.5742,1001.0391);
           PlayerInfo[i][pJailed] = 1;
           SafeResetPlayerWeapons(i);
           SafeResetPlayerMoney(i);
WantedPoints[i] = 0;
PlayerInfo[i][pJailTime] = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.   Kaucija: Nedostupna", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo[i][pAccount];
new key = PlayerInfo[i][pPhousekey];
if(key != 255)
{
rent = HouseInfo[key][hRent];
if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 255;
SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
}
new tmpintrate;
if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
   if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
}
else
{
   if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 5)
{
   Tax += TaxValue;//Should work for every player online
   PlayerInfo[i][pAccount] -= TaxValue;
new checks = PlayerInfo[i][pPayCheck] / 5;
if(PlayerInfo[i][pDonateRank] > 0)
{
   new bonus = PlayerInfo[i][pPayCheck] / 10;
   checks += bonus;
}
   new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
   account += checks;
   if(PlayerInfo[i][pAccount] > 0)
   {
    PlayerInfo[i][pAccount] -= ebill;
    SBizzInfo[4][sbTill] += ebill;
}
else
{
   ebill = 0;
}
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerInfo[i][pAccount] = account+interest;
SendClientMessage(i, COLOR_GREEN, "|___ IZJAVA BANKE ___|");
format(string, sizeof(string), "  Plata: $%d   Takse: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_WHITE, string);
if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
{
   format(string, sizeof(string), "  Racun za struju: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), "  Staro stanje: $%d", account - checks);
SendClientMessage(i, COLOR_WHITE, string);
format(string, sizeof(string), "  Kamata: 0.%d posto",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), "  Kamatni interes $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo[i][pAccount]);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Renta: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Ukupan Kredit: $%d", PlayerInfo[i][pKredit]);
SendClientMessage(i, COLOR_GRAD5, string);
if(PlayerInfo[i][pKredit] != 0)
{
SendClientMessage(i, COLOR_GRAD5,"  Rata: $500");
PlayerInfo[i][pKredit] -= 500;
PlayerInfo[i][pAccount] -= 500;
}
format(string, sizeof(string), "~y~Plata~n~~w~Plata je stigla na vas racun");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(FarmerVar[i] == 0)
{
FarmerPickup[i][0] = 0;
}
if(DrugFarmerVar[i] == 0)
{
DrugFarmerPickup[i][0] = 0;
}
if(SmugglerWork[i] == 0)
{
PayDaySecure[i] = 0;
}
if(PlayerInfo[i][pDonateRank] > 0)
{
   PlayerInfo[i][pPayDayHad] += 1;
   if(PlayerInfo[i][pPayDayHad] >= 5)
   {
       PlayerInfo[i][pExp]++;
       PlayerInfo[i][pPayDayHad] = 0;
   }
}
}
else
{
   SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili platu.");
}
}
{
           format(string, sizeof(string), "Lutrija: Pocinjemo izvlacenje.");
           OOCOff(COLOR_DBLUE, string);
           new rand = random(80);
           if(rand < 77) { rand += 3; }
           Lotto(rand);
       }
}
SaveAccounts();
Checkprop();
return 1;
}

evo, kako da smanjim platu ?
[/quote]

evo ti ovako...

public PayDay()
{
   
   new string[128];
   new account,interest;
   new rent = 0;
   foreach (Player, i)
   {
          if(PlayerInfo[pLevel] > 0)
          {
             if(MoneyMessage==1)
            {
                SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
                GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
                SetPlayerInterior(i, 6);
                PlayerInfo[pInt] = 6;
                  SetPlayerPos(i, 264.6288,77.5742,1001.0391);
                  PlayerInfo[pJailed] = 1;
                  SafeResetPlayerWeapons(i);
                  SafeResetPlayerMoney(i);
               WantedPoints = 0;
               PlayerInfo[pJailTime] = 240;
               format(string, sizeof(string), "Uhapseni ste na %d sekundi.   Kaucija: Nedostupna", PlayerInfo[pJailTime]);
               SendClientMessage(i, COLOR_WHITE, string);
            }
            new playername2[MAX_PLAYER_NAME];
            GetPlayerName(i, playername2, sizeof(playername2));
            account = PlayerInfo[pAccount];
            new key = PlayerInfo[pPhousekey];
            if(key != 255)
            {
               rent = HouseInfo[key][hRent];
               if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
               {
                  rent = 0;
               }
               else if(rent > GetPlayerMoney(i))
               {
                  PlayerInfo[pPhousekey] = 255;
                  SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
                  rent = 0;
               }
               HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
            }
            new tmpintrate;
            if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
            {
                if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; }
               else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
            }
            else
            {
                if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; }
               else { tmpintrate = 1; }
            }
            if(PlayerInfo[pPayDay] >= 5)
            {
                Tax += TaxValue;//Should work for every player online
                PlayerInfo[pAccount] -= TaxValue;
               new checks = PlayerInfo[pPayCheck] / 3;
               if(PlayerInfo[pDonateRank] > 0)
               {
                   new bonus = PlayerInfo[pPayCheck] / 6;
                   checks += bonus;
               }
                new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]);
                account += checks;
                if(PlayerInfo[pAccount] > 0)
                {
                   PlayerInfo[pAccount] -= ebill;
                   SBizzInfo[4][sbTill] += ebill;
               }
               else
               {
                   ebill = 0;
               }
               interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
               PlayerInfo[pExp]++;
               PlayerInfo[pAccount] = account+interest;
               SendClientMessage(i, COLOR_GREEN, "|___ IZJAVA BANKE ___|");
               format(string, sizeof(string), "  Plata: $%d   Takse: -$%d", checks, TaxValue);
               SendClientMessage(i, COLOR_WHITE, string);
               if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255)
               {
                   format(string, sizeof(string), "  Racun za struju: -$%d", ebill);
                  SendClientMessage(i, COLOR_GRAD1, string);
               }
               format(string, sizeof(string), "  Staro stanje: $%d", account - checks);
               SendClientMessage(i, COLOR_WHITE, string);
               format(string, sizeof(string), "  Kamata: 0.%d posto",tmpintrate);
               SendClientMessage(i, COLOR_GRAD2, string);
               format(string, sizeof(string), "  Kamatni interes $%d", interest);
               SendClientMessage(i, COLOR_GRAD3, string);
               SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
               format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo[pAccount]);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "  Renta: -$%d", rent);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "  Ukupan Kredit: $%d", PlayerInfo[pKredit]);
               SendClientMessage(i, COLOR_GRAD5, string);
               if(PlayerInfo[pKredit] != 0)
               {
                  SendClientMessage(i, COLOR_GRAD5,"  Rata: $500");
                  PlayerInfo[pKredit] -= 500;
                  PlayerInfo[pAccount] -= 500;
               }
               format(string, sizeof(string), "~y~Plata~n~~w~Plata je stigla na vas racun");
               GameTextForPlayer(i, string, 5000, 1);
               rent = 0;
               PlayerInfo[pPayDay] = 0;
               PlayerInfo[pPayCheck] = 0;
               PlayerInfo[pConnectTime] += 1;
               if(FarmerVar == 0)
               {
                  FarmerPickup
  • = 0;
                   }
                   if(DrugFarmerVar == 0)
                   {
                      DrugFarmerPickup
    • = 0;
                     }
                     if(SmugglerWork == 0)
                     {
                        PayDaySecure = 0;
                     }
                     if(PlayerInfo[pDonateRank] > 0)
                     {
                         PlayerInfo[pPayDayHad] += 1;
                         if(PlayerInfo[pPayDayHad] >= 5)
                         {
                             PlayerInfo[pExp]++;
                             PlayerInfo[pPayDayHad] = 0;
                         }
                     }
                  }
                  else
                  {
                      SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili platu.");
                  }
               }
               {
                     format(string, sizeof(string), "Lutrija: Pocinjemo izvlacenje.");
                     OOCOff(COLOR_DBLUE, string);
                     new rand = random(80);
                     if(rand < 77) { rand += 3; }
                     Lotto(rand);
                 }
         }
         SaveAccounts();
         Checkprop();
         return 1;
      }[/code]
Poslednja Izmena: Jul 24, 2011, 17:18:33 POSLE PODNE od [TG]$--L84S--$
Vratio sam se ponovo ocekjute novi server...

Pozzz, ovako treba mi nesto sto ocisti chat. Znaci ovako. Koristim GF mod i kada pocne tut meni gore pise ono: Connected to ..., ukoliko ne razumijete sta zelim stavit cu sliku.

#define ClearChat(%1,%2) for(new c; c < %2; c++) SendClientMessage(%1,0xFFFFFFAA,"   ")

stavi to na vrh skripte i onda tamo gdje oces da ti se pocisti chat napises:
ClearChat(playerid,100);
Ako neces da se cijeli pocisti onda napisi umijesto 100 koj broj redova zelis da se pocisti...:))

Mysterious roleplay


Citat: Petar Pan poslato Jul 24, 2011, 17:33:25 POSLE PODNE
Trebam nesto sto parvi ineterijere u igrici
lol kako ce intove in game praviti?
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Citat: Petar Pan poslato Jul 24, 2011, 17:33:25 POSLE PODNE
Trebam nesto sto parvi ineterijere u igrici

O cem ti pricas? Objasni kako mislis intove?? Ako mislis pravit intove od objekata onda ti za to sluzi MTA,ne razumijem te!
Mysterious roleplay

Citat: Zohan poslato Jul 24, 2011, 10:45:13 PRE PODNE
System32, daj mi odgovori u PM za mappanje.
Opomena, Procitaj pravila ovog pdf..
Za to postoji PM a ako korisnik ne zeli odg.. to je tvoj problem.
Citat: Petar Pan poslato Jul 24, 2011, 17:33:25 POSLE PODNE
Trebam nesto sto parvi ineterijere u igrici
Vec si dobio bio odg...
nemozes int pravit in game int mozes preurediti/napraviti u MTA....

Citat: [TG]$--L84S--$ poslato Jul 24, 2011, 17:45:23 POSLE PODNE
Citat: Zohan poslato Jul 24, 2011, 10:45:13 PRE PODNE
System32, daj mi odgovori u PM za mappanje.
Opomena, Procitaj pravila ovog pdf..
Za to postoji PM a ako korisnik ne zeli odg.. to je tvoj problem.
Citat: Petar Pan poslato Jul 24, 2011, 17:33:25 POSLE PODNE
Trebam nesto sto parvi ineterijere u igrici
Vec si dobio bio odg...
nemozes int pravit in game int mozes preurediti/napraviti u MTA....


pa jbt vidio sam na onome engleskom samo nemogu ga opet naci

Citat: ...PhiLLipS... poslato Jul 24, 2011, 22:27:40 POSLE PODNE
Pozz ljudi treba mi kada neki lik u igri nesto kaze da mu se iznad glave stvori to sto je rekao
Mod koji koristim:FG
SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
ili opsirnije http://wiki.sa-mp.com/wiki/SetPlayerChatBubble

Kako da napravim da admini u /adu vide ID igrača koji je napisao nešto na /ad ?

evo /ad:

CMD:ad(playerid, params[])
{
new string[200];
new sendername[MAX_PLAYER_NAME];
new oglastekst[128], payout;
if(sscanf(params, "s[128]", oglastekst))
{
SCM(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} (/ad)vertise [tekst oglasa]");
return 1;
}
else
{
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), " {FFFF80}Real Los Santos Life| {FF4444}Ne mozes oglasavati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo[playerid][pMuteTime], (PlayerInfo[playerid][pMuteTime]/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
if(PlayerInfo[playerid][pLevel] <= 2)
{
format(string, sizeof(string), " {FFFF80}Real Los Santos Life| {FF4444}Moras biti {FFFF80}lvl 3+ {FF4444}da bi mogao pisati oglase!");
SCM(playerid, 0xFF4444FF, string);
return 1;
}
if (oglasvrijeme >= 0 && (PlayerInfo[playerid][pAdmin] < 1))
{
format(string, sizeof(string), "   Sacekaj jos %d sekundi prije ponovnog postavljanja oglasa !",  oglasvrijeme);
SendClientMessage(playerid, COLOR_GRAD2, string);
return 1;

}
payout = cijenaoglasa1;
if(GetPlayerCash(playerid) < payout)
        {

            format(string, sizeof(string), "* Nemas dovoljno novca!{FF5E5E} (Potrebno %d$) ", payout);
            SendClientMessage(playerid, 0xB9B9B9FF, string);
            return 1;
        }

for(new i = 0; i < sizeof(Dionice); i++)
{
if(Dionice[i][dType] == 1)
{
Dionice[i][dKasa1] += payout/10;
Dionice[i][dKasa2] += payout/10;
Dionice[i][dKasa3] += payout/10;
Dionice[i][dKasa4] += payout/10;
Dionice[i][dKasa5] += payout/10;
Dionice[i][dKasa6] += payout/10;
Dionice[i][dKasa7] += payout/10;
Dionice[i][dKasa8] += payout/10;
Dionice[i][dKasa9] += payout/10;
Dionice[i][dKasa10] += payout/10;
SaveDionice(i);
}
}
new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
for(new b = 0; b < sizeof brojevi; b++)
{
new tekst = strlen(oglastekst);
for(new i = 0; i<tekst; i++)
{
if(oglastekst[i] == brojevi[b])
oglastekst[i] = '*' ;
}
}
new ostring[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{00BB00}Oglas: {99E399}%s {00BB00}Broj: {99E399}%d", sendername,PlayerInfo[playerid][pPnumber]);
OOCNews(0xA0BE73FF,string);
format(string, sizeof(string), "{00BB00}~{FFFFFF}%s",  oglastekst);
OOCNews(0x82FF00FF,string);
GivePlayerCash(playerid, - payout);
format(ostring, sizeof(ostring), "%s -> Oglas: %s", sendername,oglastekst);
OglasLog(ostring);
format(string, sizeof(string), "~r~Postavio si Oglas!~n~~w~Cijena: %d$", payout);
GameTextForPlayer(playerid, string, 5000, 5);
if (PlayerInfo[playerid][pAdmin] < 1)
{
oglasvrijeme = 45;
}
}
  return 1;
}
Poslednja Izmena: Jul 24, 2011, 22:34:46 POSLE PODNE od pHon