[Ajuda] Includes - 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] Includes (
/showthread.php?tid=646930)
Includes -
DeusGrego - 26.12.2017
Preciso dessas include Atualizada...
jб procurei nгo achei
Код:
#include <Servermoneygm>
#include <seif_walk>
Re: Includes -
MituhBR - 27.12.2017
Algumas includes podem ser feitas pelos prуprios scripters das GMs daн й possivel q nгo divulguem elas e tal
Mais ou menos isso, nгo sei explicar muito bem
Re: Includes -
Marllun - 27.12.2017
o servermoneygm
Abre o bloco de notas bota isso, e salva como servermoneyGM.inc
PHP код:
#define CallLoop(%1,%2) for(new %1; %1 < %2; %1++)
#define CALLBACK_AMOUNT 500
new SERVERSIDETIMER;
new ServerSideCash[MAX_PLAYERS];
public OnGameModeInit()
{
ServerMoneyInit();
return GMInit();
}
public OnGameModeExit()
{
ServerMoneyExit();
return GMExit();
}
forward GMInit();
forward GMExit();
ServerMoneyInit()
{
SERVERSIDETIMER=SetTimer("ServerMoneyCB",1000,true);
return 1;
}
ServerMoneyExit()
{
KillTimer(SERVERSIDETIMER);
return 1;
}
forward ServerMoneyCB();
public ServerMoneyCB()
{
CallLoop(ServerSidep,MAX_PLAYERS)
{
if(IsPlayerConnected(ServerSidep))
{
if(GetPlayerMoney(ServerSidep) != ServerSideCash[ServerSidep])
{
new H4xc4sh=GetPlayerMoney(ServerSidep);
H4xc4sh=H4xc4sh-ServerSideCash[ServerSidep];
if(H4xc4sh > CALLBACK_AMOUNT) OnPlayerHaveExtraCash(ServerSidep,H4xc4sh);
}
GivePlayerMoney(ServerSidep,-GetPlayerMoney(ServerSidep));
GivePlayerMoney(ServerSidep,ServerSideCash[ServerSidep]);
}
}
return 1;
}
forward GivePlayerMoneyEx(playerid,cashgiven);
public GivePlayerMoneyEx(playerid,cashgiven)
{
ServerSideCash[playerid]=ServerSideCash[playerid]+cashgiven;
return 1;
}
forward ResetPlayerMoneyEx(playerid);
public ResetPlayerMoneyEx(playerid)
{
ServerSideCash[playerid]=0;
return 1;
}
forward GetPlayerMoneyEx(playerid);
public GetPlayerMoneyEx(playerid)
{
return ServerSideCash[playerid];
}
forward OnPlayerHaveExtraCash(playerid,extraamount);
#define GetPlayerMoney GetPlayerMoneyEx
#define GivePlayerMoney GivePlayerMoneyEx
#define ResetPlayerMoney ResetPlayerMoneyEx
#define OnGameModeInit GMInit
#define OnGameModeExit GMExit
seif_walk
http://www.solidfiles.com/d/tbR3/