Angelin. Posted March 24, 2018 Posted March 24, 2018 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
Angelin. Posted March 24, 2018 Author Posted March 24, 2018 10 minutes ago, Ocelloth said: Te referi unde scrie "score" cind apeşi TAB? Da.
Ocelloth Posted March 24, 2018 Posted March 24, 2018 Acum 20 minute, Angelin. a spus: Da. Nu ai cum sa modifici acel text... e din codul SAMP-ului
Angelin. Posted March 24, 2018 Author Posted March 24, 2018 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.
skillzw0w Posted March 24, 2018 Posted March 24, 2018 Te folosesti de SetPlayerScore daca la asta te referi
Angelin. Posted March 25, 2018 Author Posted March 25, 2018 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.
skillzw0w Posted March 25, 2018 Posted March 25, 2018 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
Angelin. Posted March 25, 2018 Author Posted March 25, 2018 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..
TheSnitzel Posted March 31, 2018 Posted March 31, 2018 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; }
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now