use of PPC_trcuking gamemods .....
and I filterscrito this and when I go into the game we lost connections avtomatko captions
when I want to go back inside me You are the inscriptions from this server Banned
Код:
#include <a_samp>
#include <a_players>
#include <a_samp>
#define FilterScript
//---------------Forwarding-------------------------------
forward CriarTextDraw (playerid);
forward ActualizarTextDraws ();
forward ResetarDinheiro(playerid);
forward ChecarMoney(playerid);
//---------- Newsing -------------------------------------
new Cash[MAX_PLAYERS];
new Text:Money[MAX_PLAYERS];
//------------ Funзőes------------------------------------
/*
native GetPlayerCash(playerid);
native GivePlayerCash(playerid);
native ResetPlayerCash(playerid);
*/
public OnFilterScriptInit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
SetTimer ("ActualizarTextDraws",true,500);
SetTimer ("ResetarDinheiro",true,500);
SetTimer ("ChecarMoney",true,1000);
CriarTextDraw(playerid);
return 1;
}
//----------- Text Draw's Criar---------------------------
public CriarTextDraw(playerid)
{
Money[playerid] = TextDrawCreate(634.000000, 417.000000, "$: 0");
TextDrawAlignment(Money[playerid], 3);
TextDrawBackgroundColor(Money[playerid], 0x000000FF);
TextDrawFont(Money[playerid], 2);
TextDrawLetterSize(Money[playerid], 0.499999, 1.400000);
TextDrawSetOutline(Money[playerid], 1);
return 1;
}
//------------Actualizar Text Draw's-----------------------
public ActualizarTextDraws()
{
new String[100];
for(new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
{
if(IsPlayerConnected(playerid))
{
format(String, sizeof(String), "$: %d", GetPlayerCash(playerid));
TextDrawSetString(Money[playerid], String);
TextDrawShowForPlayer(playerid, Money[playerid]);
}
}
}
//--------Banir se Burlar Sistema ----------------------
public ChecarMoney(playerid)
{
if(GetPlayerMoney(playerid) >= 1)
{
new name[MAX_PLAYER_NAME], string[55];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "-AntiMh- %s foi banido |Motivo: Money Hack.",name);
SendClientMessageToAll(0xFFFF00AA, string);
Ban(playerid);
}
return 1;
}
//-----------Caos Tenha Dinheiro Reseta -----------------
public ResetarDinheiro(playerid)
{
ResetPlayerMoney(playerid);
return 1;
}
//-----------Getar Cash ---------------------------------
stock GetPlayerCash(playerid)
{
return Cash[playerid];
}
//-----------Resetar Cash -------------------------------
stock ResetPlayerCash(playerid)
{
Cash[playerid] = 0;
return Cash[playerid];
}
//-----------Dar Cash -----------------------------------
stock GivePlayerCash(playerid,QuantiaCash)
{
Cash[playerid] =Cash[playerid] + QuantiaCash;
return Cash[playerid];
}
//------------ Exemplo Simples Commandos ----------------
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/dinheiro", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Ganho Dinheiro");
GivePlayerCash(playerid,100);
return 1;
}
return 0;
}