13.10.2013, 04:27
(
Последний раз редактировалось xganyx; 14.10.2013 в 02:31.
)
I can't see the object... Here is my stock
Then i made this under my OnGameModeInit
But when i'm going in game i can't see the object
pawn Код:
stock CreateGate(objid,Float:closeX,Float:closeY,Float:closeZ,Float:closeRX,Float:closeRY,Float:closeRZ,Float:openX,Float:openY,Float:openZ,Float:openRX,Float:openRY,Float:openRZ,Float:dis,Float:MovingSpeed)
{
new gid = GateCount;
GateInf[gid][id] = objid;
GateInf[gid][xo] = openX;
GateInf[gid][yo] = openY;
GateInf[gid][zo] = openZ;
GateInf[gid][rxo] = openRX;
GateInf[gid][ryo] = openRY;
GateInf[gid][rzo] = openRZ;
GateInf[gid][xc] = closeX;
GateInf[gid][yc] = closeY;
GateInf[gid][zc] = closeZ;
GateInf[gid][rxc] = closeRX;
GateInf[gid][ryc] = closeRY;
GateInf[gid][rzc] = closeRZ;
GateInf[gid][drawdis] = dis;
GateInf[gid][Speed] = MovingSpeed;
CreateObject(GateInf[gid][id],GateInf[gid][xc],GateInf[gid][yc],GateInf[gid][zc],GateInf[gid][rxc],GateInf[gid][ryc],GateInf[gid][rzc]);
return 1;
}
pawn Код:
public OnGameModeInit()
{
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
CreateGate(1498,1954.1449,1378.6235,9.2578,0.0,0.0,0.0,1954.4121,1366.8541,9.2578,0.0,0.0,0.0,10.0,2.0);
return 1;
}