Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

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
Posted

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

 

 

Posted

Iauzi,da nu vrei scriptu complet?

 

Eu si el ti-am dat un exemplu,ce e asa greu sa faci niste textdraw-uri si sa le pui la alea?

Serios,si te mai recomanzi ca scripter,halal scripter:))

 

 

Posted (edited)
	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

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.