I've been wondering around a bit lately. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I've been wondering around a bit lately. (
/showthread.php?tid=156348)
I've been wondering around a bit lately. -
Hiddos - 22.06.2010
So, I want to make this script that lets you drive cows. I'm obviously going to do this with Kye's MapAndreas plugin.
Now here's my question:
*) I probably will use OnPlayerUpdate and I'll probably call 'MapAndreas_FindZ_For2DCoord' every time нt's used. Now even though my script is based for my own experience, and to show you that you need to use your imagination, will it lag on a homehost?
Re: I've been wondering around a bit lately. -
DJDhan - 22.06.2010
Nope, it won't have any considerable lag when you home-host your server and play on it. I use OnPlayerUpdate for some scripts and I don't experience any difference whatsoever.
Re: I've been wondering around a bit lately. -
Grim_ - 22.06.2010
Possibly. The MapAndreas plugin does use some horrible amounts of memory, and calling it every player update... not to wise.
You'd be better off doing some other way, like setting a timer every few seconds. Even if a timer runs every second, it'll still be called less than OnPlayerUpdate.
Re: I've been wondering around a bit lately. -
Hiddos - 22.06.2010
Well the thing is I'm trying to make cows a bit of 'drivable', so they'd need to drive without too much lag.
As for Grim: Yeah, it uses 70MB of RAM I saw.
I'll try out some things. Thanks in advance, more comments are allowed
Re: I've been wondering around a bit lately. -
Grim_ - 22.06.2010
Just to say, it wouldn't be TO terrible unless you had a good amount of players and a not so good computer.
If you were using it just to drive around yourself for the lol's it should be fine. However, testing is the best way to figure it out
Re: I've been wondering around a bit lately. -
Hiddos - 22.06.2010
It's just for fun to drive cows around in your own, empty homehost server. This isn't based for regular servers ^^.