Skripta: Euro Gaming (EGRP)
Problem: Plata stize ali ne stizu respekti,neznam u cemu je problem ako neko moze pomoci
Slike: 1.Pre plate stats: http://www.dodaj.rs/f/1V/r3/8TwkduI/sa-mp-504.png Plata: http://www.dodaj.rs/f/3R/ew/3Ynu2Pfy/sa-mp-505.png Nakon plate stats: http://www.dodaj.rs/f/1l/QA/2iYN2DGW/sa-mp-506.png
Dio skripte:
public PayDay() // PLATA
{
new string[150];
foreach (Player, i)
{
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
if(PlayerInfo[pPayDay] == 2) // ako nije na vreme podigao platu
{
if (PlayerInfo[pPlata] == 1)
{
PlayerInfo[pPlata] = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
if(PlayerInfo[pPayDay] == 3) // ako nije na vreme podigao platu
{
if (PlayerInfo[pPlata] == 1)
{
PlayerInfo[pPlata] = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
if(PlayerInfo[pPayDay] == 4) // ako nije na vreme podigao platu
{
if (PlayerInfo[pPlata] == 1)
{
PlayerInfo[pPlata] = 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[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
PlayerInfo[pJailed] = 1;
SafeJBC_ResetPlayerWeapons(i);
WantedPoints = 0;
PlayerInfo[pJailTime] = 100;
format(string, sizeof(string), "Uhapseni ste na %d sekundi. Kaucija: Nedostupna", PlayerInfo[pJailTime]);
SendClientMessage(i, COLOR_WHITE, string);
}
}
if(PlayerInfo[pPayDay] >= 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[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
PlayerInfo[pJailed] = 1;
SafeJBC_ResetPlayerWeapons(i);
SafeJBC_ResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo[pJailTime] = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi. Kaucija: Nedostupna", PlayerInfo[pJailTime]);
SendClientMessage(i, COLOR_WHITE, string);
}
public PayDay() // PLATA
{
new string[150];
foreach (Player, i)
{
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
if(PlayerInfo[pPayDay] == 2) // ako nije na vreme podigao platu
{
if (PlayerInfo[pPlata] == 1)
{
PlayerInfo[pPlata] = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
if(PlayerInfo[pPayDay] == 3) // ako nije na vreme podigao platu
{
if (PlayerInfo[pPlata] == 1)
{
PlayerInfo[pPlata] = 0;
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili racune, platite ih ili idete u zatvor.");
}
}
if(PlayerInfo[pPayDay] == 4) // ako nije na vreme podigao platu
{
if (PlayerInfo[pPlata] == 1)
{
PlayerInfo[pPlata] = 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[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
PlayerInfo[pJailed] = 1;
SafeJBC_ResetPlayerWeapons(i);
WantedPoints = 0;
PlayerInfo[pJailTime] = 100;
format(string, sizeof(string), "Uhapseni ste na %d sekundi. Kaucija: Nedostupna", PlayerInfo[pJailTime]);
SendClientMessage(i, COLOR_WHITE, string);
}
}
if(PlayerInfo[pPayDay] >= 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[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
PlayerInfo[pJailed] = 1;
SafeJBC_ResetPlayerWeapons(i);
SafeJBC_ResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo[pJailTime] = 240;
PlayerInfo[pExp] ++;
format(string, sizeof(string), "Uhapseni ste na %d sekundi. Kaucija: Nedostupna", PlayerInfo[pJailTime]);
SendClientMessage(i, COLOR_WHITE, string);
}
Kad sam probao da ubacim tu platu blaeks evo sta je bilo 26 errora i nemogu pokrenuti mod na kucni server :D
1. http://prntscr.com/psr5k
2. http://prntscr.com/psr98
Neznam do cega je ali sada nemogu pokrenuti mod na kucnom serveru.
ama ne mlatite, ti si mi dao pola publica, ja sam trazio ceo, i posto public nije potpun imas errore, ubuduce daj cele publice
Nije bitno opet cu ja srediti lock slobodno :)