SA-MP Forums Archive
Disable robbank - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Disable robbank (/showthread.php?tid=426228)



Disable robbank - raamiix - 28.03.2013

I want to make a command to disable the robbank but i'm failing

Код:
CMD:disablerobbank(playerid, params[])

{
	if (!(PlayerInfo[playerid][pAdmin] >= 1337))

	{
		SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command");
		return 1;

	}
	TimeAfterBankJob = TIME_BETWEEN_BANKJOBS;
	SendClientMessage(playerid, COLOR_WHITE, "Bank robbery is now disabled");
	return 1;

}