Pitanje/savjet: Respekte
Opširnije: Kako da uradim exp na sat vremena, da ide na minut? ( https://imgur.com/a/iWX8Uj0 )
Dodatno: /
Respekte
552
552
pregleda
8
8
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
pre 1 godinu
pre 1 godinu
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;
}
pre 1 godinu
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
pre 1 godinu
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);
pre 1 godinu
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;
}
pre 1 godinu
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