[POMOC]Policija

Započeo L.U.X
13. Jul 2011.
619
pregleda
5
postova
Luka_Lučić
3
Hustler
13. Jul 2011.
Mod koji koristim:raven's
Problem:Kako da napravim kad je recimo neko u polijici ili drzavnoj org. da dobiva placu zavisno od njegovog ranka  da nemora imat drugi posao
CH | Marko
5
Underboss
13. Jul 2011.
Luka_Lučić wrote on July 13, 2011, 2:42 pm:
Mod koji koristim:raven's
Problem:Kako da napravim kad je recimo neko u polijici ili drzavnoj org. da dobiva placu zavisno od njegovog ranka  da nemora imat drugi posao


tako da procitas pravila :/ 😐 😐 😐 😐 😐 😐
Mr.Lowrey
5
Godfather
13. Jul 2011.
sta je on krivo napravio?

on: kod public PayDay (Valjda je tako) stavis da provjerava njegov rank, if(PlayerInfo sta ja znam kako i tu mu dajes pare, onda else if ako je r2 pa mu vise para itd.
Luka_Lučić
3
Hustler
13. Jul 2011.
hmm evo kakav je pay day

public PayDay()
{
new string;
new account,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
   if(PlayerInfo > 0)
   {
   if(MoneyMessage==1)
{
   new bank = PlayerInfo;
   SendClientMessage(i, COLOR_LIGHTRED, "U minusu si, pa ides u zatvor.");
   GameTextForPlayer(i, "~r~Uhicen!", 2000, 1);
   SafeSetPlayerInterior(i, 6);
  SafeSetPlayerPos(i, 264.6288,77.5742,1001.0391);
           PlayerInfo = 1;
           SafeResetPlayerWeapons(i);
           SafeResetPlayerMoney(i);
SafeGivePlayerMoney(i, 1);
WantedPoints = 0;
PlayerInfo = (bank + DebtMoney);
DebtMoney = 0;
PlayerInfo = 240;
TextDrawShowForPlayer(i, Textdraw1);
format(string, sizeof(string), "Zatvoren si na %d sekunda.", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
new key = PlayerInfo;
if(key != 999)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 999;
SendClientMessage(i, COLOR_WHITE, "Izbacen si iz kuce.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 999 && strcmp(playername2, HouseInfo, true) == 0)
{
   if(PlayerInfo > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo
}
else
{
   if(PlayerInfo > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo >= 5)
{
   Tax += TaxValue;//Should work for every player online
   PlayerInfo -= TaxValue;
new checks = PlayerInfo / 5;
if(PlayerInfo > 0)
{
   new bonus = PlayerInfo / 10;
   checks += bonus;
}
   new ebill = (PlayerInfo/10000)*(PlayerInfo);
   account += checks;
   if(PlayerInfo > 0)
   {
    PlayerInfo -= ebill;
    SBizzInfo += ebill;
}
else
{
   ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = account+interest;
SendClientMessage(i, COLOR_GREEN, "|___ LOS SANTOS BANKA ___|");
format(string, sizeof(string), "  Profit: $%d   Najam: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_WHITE, string);
if(PlayerInfo != 999 || PlayerInfo != 255)
{
   format(string, sizeof(string), "  Rezije: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), "  Iznos Racuna: $%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), "  Dobijeno od kamate $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Novi iznos racuna: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Rent: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "~y~Placa~n~~w~Dobio si novce na svoj racun");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
if(FarmerVar == 0)
{
FarmerPickup = 0;
}
if(DrugFarmerVar == 0)
{
DrugFarmerPickup = 0;
}
if(SmugglerWork == 0)
{
PayDaySecure = 0;
}
if(PlayerInfo > 0)
{
   PlayerInfo += 1;
   if(PlayerInfo >= 5)
   {
       PlayerInfo++;
       PlayerInfo = 0;
   }
}
}
else
{
   SendClientMessage(i, COLOR_COOLRED, "* Nisi igrao dovoljno dugo da bi dobio placu.");
}
new nxtlevel = PlayerInfo+1;
new expamount = nxtlevel*levelexp;
if (PlayerInfo >= expamount)
{
format(string, sizeof(string), "~g~LEVEL UP~n~~w~sada si level %d", nxtlevel);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(i);
PlayerInfo++;
if(PlayerInfo > 0)
{
    PlayerInfo -= expamount;
    new total = PlayerInfo;
    if(total > 0)
    {
        PlayerInfo = total;
  }
    else
    {
        PlayerInfo = 0;
    }
}
else
{
PlayerInfo = 0;
}
PlayerInfo = PlayerInfo+2;
GameTextForPlayer(i, string, 5000, 1);
}
}
}
}
SaveAccounts();
Checkprop();
new rand = random(1000); rand += 545;
  Jackpot += rand;
   SaveStuff();
   format(string, sizeof(string), "Loto Vijesti: Jackpot nagrada: $%d.", Jackpot);
OOCOff(COLOR_WHITE, string);
return 1;
}
Mr.Lowrey
5
Godfather
13. Jul 2011.
i sta s njim? Da ti ja uradim?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha