Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Zaključano

[POMOC]Payday

Započeo Mistery
pre 14 godina
505
pregleda
3
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Mistery
Street Runner
pre 14 godina
evo ovako to izgleda...igram skoro cijeli 1h i nece mi doci payday,uvijek mi se samo prikaze "niste dovoljno dugo igrali za isplatu place"pls help
Quote
public PayDay()
{
new string;
new account,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo > 0)
    {
    if(MoneyMessage==1)
{
    SendClientMessage(i, COLOR_LIGHTRED, "Niste platili dug, u zatvor.");
    GameTextForPlayer(i, "~r~Uhapseni!", 2000, 1);
    SetPlayerInterior(i, 6);
  SetPlayerPos(i, 264.6288,77.5742,1001.0391);
            PlayerInfo = 1;
            ResetPlayerWeapons(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Zatvoreni ste na %d sekundi.  Jamcevina: nedostupnae", PlayerInfo);
SendClientMessage(i, COLOR_LIGHTBLUE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
new key = PlayerInfo;
if(key != 255)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 255;
SendClientMessage(i, COLOR_WHITE, "Izbaceni ste iz kuce.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 255 && 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;
    if(PlayerInfo > 0)
{
    new bonus = PlayerInfo / 2;
    PlayerInfo += bonus;
}
new checks = PlayerInfo;
    new ebill = (PlayerInfo/10000)*(PlayerInfo);
    ConsumingMoney = 1;
    GivePlayerMoney(i, checks);
    if(PlayerInfo > 0)
    {
    PlayerInfo -= ebill;
    SBizzInfo += ebill;
}
else
{
    ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = account+interest;
SendClientMessage(i, COLOR_WHITE, "|___ BANKOVNI IZVJESTAJ ___|");
format(string, sizeof(string), "  Placa: $%d  Taxa: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_GRAD1, string);
if(PlayerInfo != 255 || PlayerInfo != 255)
{
    format(string, sizeof(string), "  CijenaStruje: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), "  Stari Iznos: $%d", account);
SendClientMessage(i, COLOR_GRAD1, string);
format(string, sizeof(string), "  Kamatna stopa: 0.%d posto",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), "  Kamata $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
format(string, sizeof(string), "  Novi Iznos: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Najam: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "~y~PayDay~n~~w~Placa");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo += 1;
if(PlayerInfo > 0)
{
    PlayerInfo += 1;
    if(PlayerInfo >= 5)
    {
        PlayerInfo++;
        PlayerInfo = 0;
    }
}
}
else
{
    SendClientMessage(i, COLOR_LIGHTRED, "* Nisi dovoljno dugo igrao za isplatu place.");
}
}
}
}
Checkprop();
return 1;
}
danijel123
Kingpin
pre 14 godina
a da ti malo procitas pravla
Viky
Crime Lord
pre 14 godina
danijel123 wrote on October 8, 2011, 12:22 pm:
a da ti malo procitas pravla


Gle, imamo 4 MODERATORA ovdje! Zašto ga onda TI ispravljaš molim te? Valjda su moderatori da ga za to obavjeste.

A sad ideš na hlađenje malo, u zadnje vrijeme pišeš puno gl*pih postova...

Lock, pročitaj prafila foruma i pod-foruma!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava