Jump to content

Sistem achievements


PhaRaoH.

Recommended Posts

Sigur imediat ti-l facem. E chiar banal si nu stii sa il faci?

Adaugi variabile pe server la enumul PlayerInfo cum ar fi

Pachievements1

Dupa tutorial setez playerului 

Acbievements1 = 0;

Update (playerid,pAchievementx);

Apoi cand moare da relog scrie o comanda orice scrii asa

If (PlayerInfo [ playerid ] [ pAchievemnt] == 0)
{
    PlayerInfo [ playerid ] [ pAchievement] = 1;
    SendClientMessage(playerid,-1,"ai primit un achievement. Primul kill ");
}

 

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Ce nu ai inteles? Am explicat destul de bine, eu nu iti fac scriptul. 

 

 

EDIT: Nu comentez pentru post dar am vazut ca nu ai inteles, e explicat foarte clar, mai bine zii ca nu stii sa aplici ce am explicat... mai bine de atat nu pot explica

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Salut,vad ca esti cam bagaret si nu imi place.

Pe scurt cum ti-a spus domnu de mai sus pune la:

enum pInfo

sau daca ai enum pData pui un pAchievements1 dupa ce playerul va termina tutorialul ii vei seta

PlayerInfo[playerid][pAchievements1] = 0

 dupa care vei pune la OnPlayerDeath

If (PlayerInfo[playerid][pAchievements1] == 0)
{
    PlayerInfo[playerid][pAchievements1] = 1;
    SendClientMessage(playerid,-1,"Ai facut un achievements!Ai murit pentru prima data.");
}

Si tot asa faci

pAchievements2,

 dupa continui tu spre exemplu la prima masina vei pune in comanda /buycar

If (PlayerInfo[playerid][pAchievements2] == 0)
{
    PlayerInfo[playerid][pAchievements2] = 1;
    SendClientMessage(playerid,-1,"Ai facut un achievements!Ti-ai achizitionat prima masina.");
}

 

Si tot asa.

  • Upvote 1

 

 

Link to comment
Share on other sites

	TextDrawAchv = TextDrawCreate(14.500000, 166.250000, " ");//info
	TextDrawLetterSize(TextDrawAchv, 0.284000, 1.429375);
	TextDrawAlignment(TextDrawAchv, 1);
	TextDrawColor(TextDrawAchv, -1);
	TextDrawSetShadow(TextDrawAchv, 0);
	TextDrawSetOutline(TextDrawAchv, 1);
	TextDrawBackgroundColor(TextDrawAchv, 51);
	TextDrawFont(TextDrawAchv, 1);
	TextDrawSetProportional(TextDrawAchv, 1);

 

E greu rau sa il faci si mai esti owner de server daca nu ma insel, ca ai zis de gps -ul ala, dar tu doar dai copy paste de la un gm pe altu :))

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Ce am facut pe briston? nu te inteleg aici, eu nu am sistem de achievemnt acest script era odata acum e cam vechi si cu ce ma laud?

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.