Započeo Ryan Firenzo
•5. Feb. 2024.• ZaključanoRespekte
623
pregleda
8
postova
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
91 / 100 XP
Početnik(0)
92
Postovi:
26
Teme:
Pridružio se:Feb. 2015
5. Feb. 2024.
Pitanje/savjet: Respekte
Opširnije: Kako da uradim exp na sat vremena, da ide na minut? ( https://imgur.com/a/iWX8Uj0 )
Dodatno: /
Opširnije: Kako da uradim exp na sat vremena, da ide na minut? ( https://imgur.com/a/iWX8Uj0 )
Dodatno: /
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
99 / 100 XP
Početnik(0)
203
Postovi:
54
Teme:
Pridružio se:Jul 2022
5. Feb. 2024.
Ryan Firenzo wrote on February 5, 2024, 9:23 pm:
Pitanje/savjet: Respekte
Opširnije: Kako da uradim exp na sat vremena, da ide na minut? ( https://imgur.com/a/iWX8Uj0 )
Dodatno: /
Opširnije: Kako da uradim exp na sat vremena, da ide na minut? ( https://imgur.com/a/iWX8Uj0 )
Dodatno: /
public OnPlayerConect( playerid )
{
SetTimerEx( "RespektTimer", 60000, true, "i", playerid );
return 1;
}
forward RespektTimer( id );
public RespektTimer( id )
{
//Ne znam kako si definiso respekte u playerinfo...
//xRespekti = normalni respekti, xPRespekti su potrebni respekti, npr. 0/8
//ovo nula ti je xrespekti, a 8 xPRespekti
PlayerInfo[ id ][ xRespekti ] ++; SavePlayer( id );
if( PlayerInfo[ id ][ xRespekti ] >= PlayerInfo[ id ][ xPRespekti ])
{
PlayerInfo[ id ][ xLevel ] ++; PlayerInfo[ id ][ xRespekti ] = 0;
PlayerInfo[ id ][ xPRespekti ] = PlayerInfo[ id ][ xLevel ] * 2 + 4;
SavePlayer( id );
SetPlayerScore( id, PlayerInfo[ id ][ xLevel ]);
}
return 1;
}Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos17
Aktivan Član
283 / 500 XP
Učenik(21)
686
Postovi:
32
Teme:
Pridružio se:Sep. 2023
6. Feb. 2024.
toncikica wrote on February 5, 2024, 11:05 pm:
public OnPlayerConect( playerid )
{
SetTimerEx( "RespektTimer", 60000, true, "i", playerid );
return 1;
}
forward RespektTimer( id );
public RespektTimer( id )
{
//Ne znam kako si definiso respekte u playerinfo...
//xRespekti = normalni respekti, xPRespekti su potrebni respekti, npr. 0/8
//ovo nula ti je xrespekti, a 8 xPRespekti
PlayerInfo[ id ][ xRespekti ] ++; SavePlayer( id );
if( PlayerInfo[ id ][ xRespekti ] >= PlayerInfo[ id ][ xPRespekti ])
{
PlayerInfo[ id ][ xLevel ] ++; PlayerInfo[ id ][ xRespekti ] = 0;
PlayerInfo[ id ][ xPRespekti ] = PlayerInfo[ id ][ xLevel ] * 2 + 4;
SavePlayer( id );
SetPlayerScore( id, PlayerInfo[ id ][ xLevel ]);
}
return 1;
}Može se i preko y_timers uraditi
Ja sam Ivo Dev, bager koji razgrće sve oko skripti – poznat i kao Zbager
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
91 / 100 XP
Početnik(0)
92
Postovi:
26
Teme:
Pridružio se:Feb. 2015
7. Feb. 2024.
Ovako je
new string, dostigoga, level = PI, dostigunuti_Level = PI+1;
PI ++;
if(HappyHours == 1) { PI += 2; }
else if(HappyHours == 0) { PI ++; }
if(PI == 4) { PI ++; }
new expkolicina = level * LEVEL_EX;
if(PI >= expkolicina)
{
PI ++;
SetPlayerScore(playerid, PI);
PI = 0;
new bonuscic = PI * 500;
F_NP(playerid, bonuscic);
new string, dostigoga, level = PI, dostigunuti_Level = PI+1;
PI ++;
if(HappyHours == 1) { PI += 2; }
else if(HappyHours == 0) { PI ++; }
if(PI == 4) { PI ++; }
new expkolicina = level * LEVEL_EX;
if(PI >= expkolicina)
{
PI ++;
SetPlayerScore(playerid, PI);
PI = 0;
new bonuscic = PI * 500;
F_NP(playerid, bonuscic);
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
134
Postovi:
14
Teme:
Pridružio se:Jan. 2022
7. Feb. 2024.
toncikica wrote on February 5, 2024, 11:05 pm:
public OnPlayerConect( playerid )
{
SetTimerEx( "RespektTimer", 60000, true, "i", playerid );
return 1;
}
forward RespektTimer( id );
public RespektTimer( id )
{
//Ne znam kako si definiso respekte u playerinfo...
//xRespekti = normalni respekti, xPRespekti su potrebni respekti, npr. 0/8
//ovo nula ti je xrespekti, a 8 xPRespekti
PlayerInfo[ id ][ xRespekti ] ++; SavePlayer( id );
if( PlayerInfo[ id ][ xRespekti ] >= PlayerInfo[ id ][ xPRespekti ])
{
PlayerInfo[ id ][ xLevel ] ++; PlayerInfo[ id ][ xRespekti ] = 0;
PlayerInfo[ id ][ xPRespekti ] = PlayerInfo[ id ][ xLevel ] * 2 + 4;
SavePlayer( id );
SetPlayerScore( id, PlayerInfo[ id ][ xLevel ]);
}
return 1;
}Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
91 / 100 XP
Početnik(0)
92
Postovi:
26
Teme:
Pridružio se:Feb. 2015
8. Feb. 2024.
Ryan Firenzo wrote on February 7, 2024, 7:50 pm:
Ovako je
new string, dostigoga, level = PI, dostigunuti_Level = PI+1;
PI ++;
if(HappyHours == 1) { PI += 2; }
else if(HappyHours == 0) { PI ++; }
if(PI == 4) { PI ++; }
new expkolicina = level * LEVEL_EX;
if(PI >= expkolicina)
{
PI ++;
SetPlayerScore(playerid, PI);
PI = 0;
new bonuscic = PI * 500;
F_NP(playerid, bonuscic);
new string, dostigoga, level = PI, dostigunuti_Level = PI+1;
PI ++;
if(HappyHours == 1) { PI += 2; }
else if(HappyHours == 0) { PI ++; }
if(PI == 4) { PI ++; }
new expkolicina = level * LEVEL_EX;
if(PI >= expkolicina)
{
PI ++;
SetPlayerScore(playerid, PI);
PI = 0;
new bonuscic = PI * 500;
F_NP(playerid, bonuscic);
kako da to popravim sada ?
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
