[Ajuda] Level e Dinheiro - 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] Level e Dinheiro (
/showthread.php?tid=499328)
Level e Dinheiro -
TruX - 07.03.2014
Bom gente queria que quando o player acabar de registrar no meu server ele nasce com 10.000R$ e com Level 0 alguйm pode me ensinar a colocar no meu GM?
Re: Level e Dinheiro -
focaximubh - 07.03.2014
seu gm nгo, no gm que vocк baixou na net.... Basta vocк olhar no seu sistema de login na public OnPlayerConnect ou OnDialogResponse, procure por login e por registro.
Re: Level e Dinheiro -
ProKillerpa - 07.03.2014
PHP код:
#define LEVEL_INICIAL 0
#define GRANA_INICIAL 10000
OnPlayerSpawn:
PHP код:
SetPlayerScore(playerid, LEVEL_INICIAL);
SetPlayerMoney(playerid, GRANA_INICIAL);
Assim ele setarб sempre que o player spawnar, para saber o primeiro login, vocк tenque salvar em um arquivo ou no doc do player
Re: Level e Dinheiro -
TruX - 07.03.2014
Focaximubh meu sim porque eu estou fazendo ele do 0
ProKillerpa onde eu coloco meu GM tem sу isso
Код:
#include <a_samp>
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("San Andreas");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
Re: Level e Dinheiro -
TruX - 07.03.2014
Desculpa o double apost
Eu fiz desse jeito para colocar o dinheiro
Код:
new moneynewregistro=10000; // Dinheiro
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid,moneynewregistro); // Dinheiro
return 1;
}
e o Level

Alguйm me ajuda por favor
Re: Level e Dinheiro -
PT - 07.03.2014
Vejo que es novo.
recomendo que leias tutoriais e estudes:
https://sampforum.blast.hk/showthread.php?tid=497801
pois ninguem vai fazer a sua GM por si.