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



[Ajuda] Pagamento - JOKERBOY - 05.04.2011

Como faзo para se um player for de tal profissгo ele receber "X" de dinheiro a cada uma hora ?


Re: [duvida] Pagamento - Macintosh - 05.04.2011

O Sub Zero criou uma include para facilitar em Pagamentos, Ache ela no meio desses "intulhos" em lanзamentos e adapte ela.

Exemplo:

pawn Код:
if(Prof[playerid] == GUARDA)
{
 GivePlayerMoney(playerid,100);
}
else if(Prof[playerid] == LIXEIRO)
{
 GivePlayerMoney(playerid,150);
 return 1;
}
E assim sucessivamente.


Re: [duvida] Pagamento - JonathanFeitosa - 05.04.2011

pawn Код:
// Topo
forward JFS();

// OnGameModeInit
SetTimer("nomedefinido",900000, true); // Tempo
// Final

public JFS() // Callback Definida no topo do GM(forward define uma callback)
{
if(gTeam[playerid] == JFSMACOLA){ // OuSeila Depende.
GivePlayerMoney(playerid, 10000); // Quantidade de Grana
SendClientMessageToAll(Cor_Branco, "Parabйns! A ORG Dos Macolas Recebeu $ 10000 Por Ser MachГo JFS !"); // Messagem
}
return 1;
}
PS : JFS OWNA ( Luiz Luiz... )
Para Ficar Mais Bom Para Ver.


Re : [Ajuda] Pagamento - JOKERBOY - 05.04.2011

Nгo pegaa !!


Re: [Ajuda] Pagamento - [Ips]Guh - 05.04.2011

so corrigindo o Code do Jhonatan
pawn Код:
// Topo
forward JFS();

// OnGameModeInit
SetTimer("JFS",600000, true); // Tempo
// Final

public JFS() // Callback Definida no topo do GM(forward define uma callback)
{
if(gTeam[playerid] == JFSMACOLA){ // OuSeila Depende.
GivePlayerMoney(playerid, 10000); // Quantidade de Grana
SendClientMessageToAll(Cor_Branco, "Parabйns! A ORG Dos Macolas Recebeu $ 10000 Por Ser MachГo JFS !"); // Messagem
}
return 1;
}
tem que mudar o
Код:
JFSMACOLA
na calback para sua Org que vc quer...


Re: [Ajuda] Pagamento - JonathanFeitosa - 05.04.2011

Quote:
Originally Posted by [Ips]Guh
Посмотреть сообщение
so corrigindo o Code do Jhonatan
pawn Код:
// Topo
forward JFS();

// OnGameModeInit
SetTimer("JFS",600000, true); // Tempo
// Final

public JFS() // Callback Definida no topo do GM(forward define uma callback)
{
if(gTeam[playerid] == JFSMACOLA){ // OuSeila Depende.
GivePlayerMoney(playerid, 10000); // Quantidade de Grana
SendClientMessageToAll(Cor_Branco, "Parabйns! A ORG Dos Macolas Recebeu $ 10000 Por Ser MachГo JFS !"); // Messagem
}
return 1;
}
tem que mudar o
Код:
JFSMACOLA
na calback para sua Org que vc quer...
So Corigindo Nosso Code :

pawn Код:
// Topo
forward JFS(playerid);

// OnGameModeInit
SetTimer("JFS",600000, true); // Tempo
// Final

public JFS(playerid) // Callback Definida no topo do GM(forward define uma callback)
{
if(gTeam[playerid] == JFSMACOLA){ // ORG
GivePlayerMoney(playerid, 10000); // Quantidade de Grana
SendClientMessageToAll(Cor_Branco, "Parabйns! A ORG Dos Macolas Recebeu $ 10000 Por Ser MachГo JFS !"); // Messagem
}
return 1;
}



Re: [Ajuda] Pagamento - [Ips]Guh - 05.04.2011

So nao entendi oq vc mudou :S