Skripta koju korsitim: RGRP
Problem: Kako sa ovaj payday da uradim da automatski igraci dobijaju RSP a ne da mora da odu u opstinu da plate smetke i onda dobiju RSP
public PayDay()  // PLATA
{
new string;
foreach (Player, i)
{
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
    if(PlayerInfo == 2) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
    if(PlayerInfo == 3) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
    if(PlayerInfo == 4) // ako nije na vreme podigao platu
{
if (PlayerInfo == 1)
{
PlayerInfo = 0;

SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(i, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeJBC_ResetPlayerWeapons(i);
WantedPoints = 0;
PlayerInfo = 100;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
}

if(PlayerInfo >= 5) // ako ispunjava uslove za platu
{
if(MoneyMessage==1)
{
SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(i, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeJBC_ResetPlayerWeapons(i);
SafeJBC_ResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
// *****************************************************************************
    new stringd;
    PlayerInfo = 1;
format(stringd, sizeof(stringd), "{FF0000}Stigli su vam racuni !\n{FFFF00}Idite u opstinu,\n{FFFF00}da platite\n{0000CC}ROK ZA UPLATU 20min.");
ShowPlayerDialog( i, PLATA, DIALOG_STYLE_MSGBOX, "{FFFFFF}Izvestaj banke :", stringd, "Uredu", "" );
}
else
{
PlayerInfo = 0;
    SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili racune.");
}

}
SaveAccounts();
return 1;
}