Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Как убрать анти-чит на деньги (Rls) +

Статус
В этой теме нельзя размещать новые ответы.

вампир116

Умник
Как убрать анти-чит на деньги (Rls)?
просто с анти-читом я установил скрипт шахты, а когда работаешь наработал например 100$ они тебе идут и сразу отнимаются(
помогите! или может изменить сам скрипт шахты? вот оно если что
PHP:
#include <a_samp>

#define COLOR_SYSTEM 0xFFFFFFFF

forward TimeMiner(playerid);
forward hand(playerid);
forward mesh(playerid);

new bool:startjob[MAX_PLAYERS];
new bool:Miner[MAX_PLAYERS];
new bool:kirk[MAX_PLAYERS];
new bool:meshgo[MAX_PLAYERS];

new attache[MAX_PLAYERS];
new timemine[MAX_PLAYERS];
new hands[MAX_PLAYERS];
new rands;
new Oldskin[MAX_PLAYERS];
new pickmine;
new kg[MAX_PLAYERS];
new ruda;
new randommine[][1] =
{
    {25},
    {27},
    {29},
    {28},
    {33},
    {30},
    {35},
    {32},
    {37},
    {41},
    {36},
    {42},
    {47},
    {52},
    {39},
    {40},
    {53},
    {54},
    {43},
    {44},
    {45}
};

main()
{
	print("\n----------------------------------");
	print(" Работа шахтёра by John23155 aka Mass_ave");
	print("----------------------------------\n");
}


public OnGameModeInit()
{
	pickmine = CreatePickup(1275,23,-1864.6772,-1559.7124,21.7500);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
 	if(pickupid == pickmine)
	{
		if(Miner[playerid] == true)// тоже можно разными цветами
		{
		    ShowPlayerDialog(playerid,116,DIALOG_STYLE_MSGBOX,"Работа шахтера","{EEADDF}>>{FFFFFF}Вы действительно желаете закончить рабочий день?","Да","Нет");
		}
		else
		{
		    ShowPlayerDialog(playerid,115,DIALOG_STYLE_MSGBOX,"Работа шахтера","{EEADDF}>>{FFFFFF}Вы желаете начать добычу руды?","Да","Нет");
		}
	}
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 	new string[256];
	if(dialogid == 115 && response)// Если не на работе, то показываем чтоб устроиться
	{
   			if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);// забрали кирку
			Miner[playerid] = true;// работу начал
			Oldskin[playerid] = GetPlayerSkin(playerid);// сохроняем старый скин
			SetPlayerSkin(playerid, 16);// ставим скин работяги
			SetPlayerCheckpoint(playerid,-1804.6999511719,-1650.0999755859,22.89999961853,6.0);// Ставим чекпоинт где долбить руду
			SetPlayerAttachedObject(playerid,1, 18634, 14, 0.333391, 0.000000, 0.042249, 358.219909, 268.014739, 170.032974, 2.003867, 1.764811, 1.579773);// дали кирку
			SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}Вы начали работу Шахтёра!");
			SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}На вашей карте отмечен чекпоинт");
			SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}Идите к нему, чтобы начать добычу руды");
			ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,1,1,1,0,11000);//    WEAPON_csawlo
			ClearAnimations(playerid);
			ClearAnimations(playerid);
			ClearAnimations(playerid);
	}
	if(dialogid == 116 && response)// Если на работе, то показваем, что желаете ли закончить рабочий день
	{
			Miner[playerid] = false;// Игрок не шахтер
		  	SetPlayerSkin(playerid,Oldskin[playerid]);// Ставим старый скин
		   	DisablePlayerCheckpoint(playerid);// Убираем чп.
		   	GivePlayerMoney(playerid, kg[playerid]/2);
		   	format(string, sizeof(string), "{EEADDF}>>{FFFFFF}Вы заработали %d$ за добычу %dкг руды",kg[playerid]/2,kg[playerid]);
  			SendClientMessage(playerid, COLOR_SYSTEM, string);
		   	kg[playerid] = 0;
       		if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
		   	if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);// забрали тачку
		   	if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);// забрали тачку
	}
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    new string[128];
	if(PlayerToPoint(6.0, playerid,-1804.6999511719,-1650.0999755859,22.89999961853))
	{
		startjob[playerid] = true;
	    ClearAnimations(playerid);
	    ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,1,0,0,1,11000);
	    DisablePlayerCheckpoint(playerid);
		hands[playerid] = SetTimerEx("hand",9800,false,"i",playerid);
		return 1;
	}
	else if(PlayerToPoint(3.0, playerid,-1868,-1612.3000488281,20.700000762939) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
	  	startjob[playerid] = false;
		rands = random(sizeof(randommine));
		kg[playerid] += randommine[rands][0];
		if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);// забрали кирку
	  	if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);// забрали тачку
	  	if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);// забрали камень
	  	SetPlayerAttachedObject(playerid,1, 18634, 14, 0.333391, 0.000000, 0.042249, 358.219909, 268.014739, 170.032974, 2.003867, 1.764811, 1.579773);// дали кирку
	  	format(string, sizeof(string), "Общее количество добытой руды %dкг руды",kg[playerid]);
	  	SendClientMessage(playerid, -1, string);
	  	format(string, sizeof(string), "Вы добыли %dкг руды",randommine[rands][0]);
	  	SendClientMessage(playerid, -1, string);
		ruda+=randommine[rands][0];
		ApplyAnimation(playerid,"PED","IDLE_tired",4.1,1,0,0,0,2500);
    	SetPlayerCheckpoint(playerid,-1804.6999511719,-1650.0999755859,22.89999961853,6.0);
    	return 1;
    }
	return 1;
}

stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
	{
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy, Float:tempposz;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		tempposx = (oldposx -x);
		tempposy = (oldposy -y);
		tempposz = (oldposz -z);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}

public hand(playerid)
{
    if(startjob[playerid]==true)
	{
     	ApplyAnimation(playerid,"PED","IDLE_chat",4.1,0,0,0,1,5150);
	    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);// забрали кирку// забрать объекты
		SetPlayerAttachedObject(playerid,2, 905, 5, 0.020944, 0.039285, -0.035010, 0.000000, 0.000000, 0.000000, 0.301603, 0.125763, 0.233199 );
	    SetPlayerAttachedObject(playerid,3, 906, 6, -0.032336, 0.111448, 0.001745, 0.000000, 0.000000, 0.000000, 0.026124, 0.048238, 0.048593);
	    timemine[playerid] = SetTimerEx("TimeMiner",5700,false,"i", playerid);
	}
	return 1;
}
public mesh(playerid)
{
    if(kirk[playerid]==true)
	{
		DestroyObject(attache[playerid]);
		if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);// забрали кирку// забрать объекты
		if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);// забрали кирку// забрать объекты
		ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,1,0,0,1,1);
	 	SetPlayerAttachedObject(playerid, 1 , 1279, 1, 0.062397, 0.453746, 0.000000, 0.000000, 94.689308, 0.000000);
		meshgo[playerid] = true;
		GameTextForPlayer(playerid,"~y~ turned",2500,1);
	}
	return 1;
}
//==============================================================================
public TimeMiner(playerid)
{
	if(startjob[playerid]==true)
	{
  		if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);// забрали кирку// забрать объекты
		if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);// забрали кирку// забрать объекты
 		SetPlayerAttachedObject(playerid,2, 1458, 1, -1.034844, 1.116571, -0.065124, 76.480148, 75.781570, 280.952545, 0.575599, 0.604554, 0.624122);// Дали телегу с камнем
		SetPlayerAttachedObject(playerid,3, 905, 1, -0.275758, 1.305280, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);// Дали камень
		SetPlayerCheckpoint(playerid,-1868,-1612.3000488281,20.700000762939,3.0);
	}
	return 1;
}

public OnPlayerDisconnect(playerid)
{
	Miner[playerid] = false;// Игрок не шахтер
	return 1;
}
Вот может тут переправить? вот это
PHP:
GivePlayerMoney(playerid, kg[playerid]/2);
Но я хз помогите!! +++ даааммм
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу