Jump to content

Recommended Posts

Posted

Salut,

Lucrez la un gamemode de stunt, am in TAB setat Score-ul , pe RPG este ( Level ) cum este definit tab-ul ? Sau cum as putea ajunge acolo.. ca tare greu e :))

Posted
10 minutes ago, Ocelloth said:

Te referi unde scrie "score" cind apeşi TAB?

Da.

Posted
Acum 20 minute, Angelin. a spus:

Da.

Nu ai cum sa modifici acel text... e din codul SAMP-ului

Posted
25 minutes ago, Ocelloth said:

Nu ai cum sa modifici acel text... e din codul SAMP-ului

Nu, deci nu ati inteles. Nu vreau sa modific acel TEXT, eu vreau ca sub text, in dreptul numelui sa imi apara STATS NOTE, eu am setat SCORE, se refera la score din game. Pe RPG au setat acolo sa fie level, ei bine eu vreau ceva asemanator.. si nu stiu cum sa ajung sa setez aia.

Posted
16 hours ago, SkillZ_IT. said:

Te folosesti de SetPlayerScore daca la asta te referi

PlayerInfo[ playerid ][ LoggedIn ] = 1;
            session[ registrations ] = session[ registrations ] + 1;
            GivePlayerMoney( playerid, 500000 );
            SetPlayerScore( playerid, 50 );
            return ( 1 );

 

Am gasit asta, observ ca acel SetPlayerScore seteaza intradevar SCOR 50, asa e pe server. Am inlocuit cu ShowPlayer(StatsNote) ceva de genul era, dar degeaba. Am creeat si un cont nou si tot chestia aia mi-o arata.

Posted
Acum 1 minut, Angelin. a spus:

PlayerInfo[ playerid ][ LoggedIn ] = 1;
            session[ registrations ] = session[ registrations ] + 1;
            GivePlayerMoney( playerid, 500000 );
            SetPlayerScore( playerid, 50 );
            return ( 1 );

 

Am gasit asta, observ ca acel SetPlayerScore seteaza intradevar SCOR 50, asa e pe server. Am inlocuit cu ShowPlayer(StatsNote) ceva de genul era, dar degeaba. Am creeat si un cont nou si tot chestia aia mi-o arata.

In loc de level vrei sa arate NONE? Nu cred ca merge, nivelul minim in samp este 0

Posted
Just now, SkillZ_IT. said:

In loc de level vrei sa arate NONE? Nu cred ca merge, nivelul minim in samp este 0

Ba da, merge. Pe RS* sau XS* merge sa pui Stats Note, am schimbat si eu in trecut dar nu mai stiu unde trebuie sa ajung..

Posted

SetPlayerScore(playerid, score);

 

playerid = id-ul jucatorului caruia doresti sa-i executi score-ul.

score = valoarea care doresti sa o aiba jucatorul ca scor.

Valoarea minima este 0.

 

Exemplu: 

public OnPlayerDeath(playerid, killerid, reason)
{
    // Add 1 to this killer's score. We must check it is valid first.
    if(killerid != INVALID_PLAYER_ID)
    {
        SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
    }
    return 1;
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.