SA-MP Forums Archive
[Ajuda] XP E LEVEL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] XP E LEVEL (/showthread.php?tid=449914)



XP E LEVEL - minimessi10 - 10.07.2013

Quero saber um tutorial que ganha XP 1/5 e experiencia +1 level em DOF2 alguem pode me ajudar ?


Re: XP E LEVEL - LucaAllexandre - 10.07.2013

pawn Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

//News
int exp = 0;
int up = 1;
int up + exp = total;
int total;

//Fowards
forward subiu();

public OnFilterScriptInit()
{
    print("Sistema de EXP, Carregado! By: Diksplay")
    SetTimer("subiu",6000, false)
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public subiu()
{
  SendClientMessage(playerid, -1, "Parabйns, vocк subiu de nivel! e agora estб no nivel %i/5",total);
}

#else

#endif
Tentei fazer um sistema, nгo sei se estб correto. entгo me corrijam ae, claro que esse FS, Nгo й um Que tem sistema de salvamento, й um bem simples!

{COMPILADO Sem Erros!}

#NгoTestado


Re: XP E LEVEL - Lуs - 10.07.2013

https://sampforum.blast.hk/showthread.php?tid=330267


Re: XP E LEVEL - minimessi10 - 10.07.2013

Consegui fazer porem o level no seta dentro do jogo o player tem que relogar oque acho pra setar o level sem precisa relogar ?


Re: XP E LEVEL - StrondA_ - 10.07.2013

Impossнvel ter compilado sem erros.

pawn Код:
forward subiu(playerid);
public subiu(playerid)
{
  SendClientMessage(playerid, -1, "Parabйns, vocк subiu de nivel! e agora estб no nivel %i/5",total);
}