SA-MP Forums Archive
[Tutorial] [TUT]Pagamento - 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: [Tutorial] [TUT]Pagamento (/showthread.php?tid=137035)



[TUT]Pagamento - luandriftlogkdr - 27.03.2010

Й bem simples:

//=== No Topo ===

pawn Код:
forward nomedefinido(); // Definindo a callback
//=== no On‌GameModeInit ===

pawn Код:
SetTimer("nomedefinido",900000, true); // Tempo para Receber
//=== Crie uma nova Public ===

pawn Код:
public nomedefinido() // Callback Definida no topo do GM(forward define uma callback)
{
for(new i=0; i<=MAX_PLAYERS; i++) GivePlayerMoney(i, 10000); // Quantidade de Grana
SendClientMessageToAll(Cor_Branco, "Parabйns! voce recebeu $ 10000 por jogar aqui"); // Messagem
}
return 1;
{
================================
Fiiim'й isso ai vlww!

********~~~> By Zimmer, Simplificado By Euuuu' Luan <~~~********



Re: [TUT]Pagamento - andmeida10 - 27.03.2010

usa as tags [pawn*] e [/pawn*] (sem o asterisco)


Re: [TUT]Pagamento - 147rafa147 - 27.03.2010

ok pronto apaguei ^^


Re: [TUT]Pagamento - ashiuashiu - 27.03.2010

Isso nгo й tutorial, й cуdigo pronto. Em um tutorial deve se explicar aonde coloca cada funзгo, e para que serve.


Re: [TUT]Pagamento - luandriftlogkdr - 27.03.2010

Rafa apaga isso--' o TUTORIAL foi eu q fiz, vtnc jб arrumei --'


Re: [TUT]Pagamento - Ambrуsio - 27.03.2010

Код:
SendClientMessageToAll(Cor_Branco, "КBAA! Vocк recebeu 10000$ por jogar aqui no Servidor");
EURI




Re: [TUT]Pagamento - Guilherme_Canani - 27.03.2010

Isso nгo й tutorial... '-'