Textdraws:
http://forum.sa-mp.com/index.php?topic=116290.0
My URL textdraw:
pawn Код:
// Top
new Text:SiteName;
// OnGameModeInIt
SiteName = TextDrawCreate(4.000000,435.000000,"web url goes here");
TextDrawFont(SiteName,3);
TextDrawLetterSize(SiteName,0.300,1);
TextDrawColor(SiteName, 0xFFFFFFAA); //
TextDrawColor(SiteName, 0xC00000AA);
TextDrawSetOutline(SiteName,1);
TextDrawBackgroundColor(SiteName,0x000000AA);
TextDrawUseBox(SiteName,0);
TextDrawAlignment(SiteName, 1);
// OnPlayerConnect
TextDrawShowForPlayer(playerid, Text:SiteName);
// OnPlayerDisonnect:
TextDrawHideForPlayer(playerid, Text:SiteName);
// OnGameModeExit
TextDrawHideForAll(SiteName);
And yes, my server uses gmx every 60 minutes.
Then I've got like a ton of objects and midiostream. After a while, some objects quit loading
but I've got maxobjects set to like 5k.
Plus I've got:
OnGameModeExit - SendRconCommand("reloadfs MidoStream");
And OnGameModeInIt - SendRconCommand("reloadfs MidoStream");
Auto Gate:
pawn Код:
// Top:
new area51gate;
forward area51gateTimer(playerid);
// OnGameModeInIt:
area51gate = CreateObject(971, 96.705085754395, 1920.8884277344, 20.743732452393, 0.000000, 0.000000, 270.42498779297);
SetTimer("area51gateTimer", 1000, 1);
// // Public:
public area51gateTimer(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10, 96.705085754395, 1920.8884277344, 20.743732452393))
{
MoveObject(area51gate, 96.695297241211, 1929.7633056641, 20.743732452393, 1.50000);
}else{
MoveObject(area51gate, 96.705085754395, 1920.8884277344, 20.743732452393, 1.50000);
}
}
Thanks