16.01.2010, 09:12
Quote:
Originally Posted by Toney
DRIFT_HUNTER MAX objects in one area 150-250
|
Originally Posted by Toney
DRIFT_HUNTER MAX objects in one area 150-250
|
v2.3.4: - Fixed bug with OnPlayerPickUpDynamicPickup that resulted in it being called too many times when multiple scripts were loaded - Fixed bug with checkpoints and race checkpoints that caused none to be streamed until the one that was visible was no longer in range - Slightly improved native address finding and added an error message that prints in the server log when all natives cannot be found - Consolidated all of the update natives into Streamer_Update - Added Streamer_UpdateEx for loading items in a specified area |
Originally Posted by kurta999
Iam using the streamer, very good 5/5. Dont adding the vehicle streamer ?
|
GetElementFloatData(elementtype,elementid,datatype[],&Float:result); GetElementIntegerData(elementtype,elementid,datatype[]);
#include <streamer>
new calexit,calentry,dentry,pdexit;
public OnGameModeInit()
{
calentry = CreateDynamicCP(2196.2510,1677.2078,12.3672, 1, -1, -1, 100.0);
calexit = CreateDynamicCP(2233.9316,1714.6794,1012.3828, 1, -1, 100.0);
pdentry = CreateDynamicCP(2290.1140,2431.4399,10.8203, 1, -1, -1, 100.0);
pdexit = CreateDynamicCP(2290.1140,2431.4399,10.8203,1, -1, -1, 100.0);
return 1;
}
public OnPlayerEnterDynamicCheckpoint(playerid, streamid)
{
if(streamid == calentry)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,2234.0046,1710.6891,1011.2861);
SetPlayerFacingAngle(playerid,180.4817);
}
else if(streamid == calexit)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2190.8484,1676.4915,11.7862);
SetPlayerFacingAngle(playerid,92.4966);
}
else if(streamid == pdentry)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,2290.1140,2431.4399,10.8203);
SetPlayerFacingAngle(playerid,180.4817);
}
else if(streamid == pdexit)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2290.1140,2431.4399,10.8203);
SetPlayerFacingAngle(playerid,92.4966);
}
return 1;
}