20.01.2013, 06:39
It bug happened also on 0.3e, but with new draw distance it will be problem.
If you create objects with same modelid, but another drawdistance, you will have only 1 drawdistance for all objects with this modelid.
/object1 - create object with 3437 modelid with 100 draw distance
/object2 - create object with 3437 modelid with 10 draw distance, but it changes distance also for object1
/object3 and /object4 - same for another modelid
If you create objects with same modelid, but another drawdistance, you will have only 1 drawdistance for all objects with this modelid.
/object1 - create object with 3437 modelid with 100 draw distance
/object2 - create object with 3437 modelid with 10 draw distance, but it changes distance also for object1
/object3 and /object4 - same for another modelid
Код:
#include <a_samp> main(){} public OnPlayerSpawn(playerid) SetPlayerPos(playerid,-364.000000,-390.000000,6.420000); public OnGameModeInit() AddPlayerClass(1,488.1703,-14.2043,1000.6797,17.7887,-1,-1,-1,-1,-1,-1); public OnPlayerRequestClass(playerid,classid) { SetSpawnInfo(playerid,255,1,-364.000000,-390.000000,6.420000,1.0,-1,-1,-1,-1,-1,-1); SpawnPlayer(playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/object1")==0) { CreateObject(3437,-362.000000,-390.000000,6.420000,0,0,0,100); return 1; } if(strcmp(cmdtext,"/object2")==0) { CreateObject(3437,-360.000000,-390.000000,6.420000,0,0,0,10); return 1; } if(strcmp(cmdtext,"/object3")==0) { CreateObject(3877,-362.000000,-385.000000,6.420000,0,0,0,100); return 1; } if(strcmp(cmdtext,"/object4")==0) { CreateObject(3877,-360.000000,-385.000000,6.420000,0,0,0,10); return 1; } return 0; }