SA-MP Forums Archive
Lockers help and rollbacks help - 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: Lockers help and rollbacks help (/showthread.php?tid=484459)



Lockers help and rollbacks help - PrinceOfPersia - 30.12.2013

Hello
How to avoid rollback after server restarting?

and how to put lockers in that place



Lockers Codes

Код:
CMD:lsfmdlockers(playerid, params[])
{
	if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
	{
		if (IsPlayerInRangeOfPoint(playerid,-1992.9972,-77.0876,1060.9877,358.9500)/*Old Locker: 2106.5076,2808.9678,-15.9556*/ || IsPlayerInRangeOfPoint(playerid,3,413.79, 2536.79, 10.00))
		{
			ShowPlayerDialog(playerid, FDSAMENU, DIALOG_STYLE_LIST, "LSFMD","Duty\nUniform\nEquipment\nCivilian", "Select", "Cancel");
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_RED, "You aren't in range of your LSFMD lockers.");
		}
	}
	return 1;
}
Код:
// FDSA text label for different virtual worlds
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 1, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 2, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 3, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 4, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 5, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 6, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 7, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 8, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 9, 1, -1); // Hospital
	CreateDynamic3DTextLabel("/LSFMDLOCKER\nTo open your locker.", COLOR_DBLUE, -1992.9972,-77.0876,1060.9877,358.9500+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 10, 1, -1); // Hospital
Thanks.


Re: Lockers help and rollbacks help - PrinceOfPersia - 30.12.2013

Help.


Re: Lockers help and rollbacks help - PrinceOfPersia - 30.12.2013

No one knows solution?


Re: Lockers help and rollbacks help - PrinceOfPersia - 30.12.2013

No one know any thing ..............?
I really need help


Re: Lockers help and rollbacks help - boomerboom - 30.12.2013

OnPlayerConnect you can set timers that saves your stats every few minutes.