Gate problem. realy big one. - 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)
+--- Thread: Gate problem. realy big one. (
/showthread.php?tid=361290)
Gate problem. realy big one. -
Gangster-rocks - 20.07.2012
pawn Код:
CMD:gate(playerid,params)
{
if(pInfo[playerid][fMember] > 2 && pInfo[playerid][fLeader] > 2)
{
return SendClientMessage(playerid,COLOR_RED,"You are not a NCR member");
}
else
{
new pName[MAX_PLAYER_NAME],str[128];
MoveObject(NCRGate1,96.44, 1924.51, 39,0.00, 0.00, -88.14);
MoveObject(NCRGate2, 96.44, 1924.51,7.13,0.00, 0.00, -88.14);
GetPlayerName(playerid,pName,sizeof(pName));
format(str,sizeof(str),"%s has opened the NCR main door",pName);
ProxDetector(50.0, playerid, str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
Why is that happening
Re: Gate problem. realy big one. -
Gangster-rocks - 20.07.2012
Bump help me please
Re: Gate problem. realy big one. -
Songason - 20.07.2012
Why is what happening? More information please
Re: Gate problem. realy big one. -
Gangster-rocks - 20.07.2012
When i use /gate the gate won't open why.
Re: Gate problem. realy big one. -
SuperViper - 20.07.2012
If you're creating the gates through the streamer (CreateDynamicObject) then you need to use MoveDynamicObject.
Re : Gate problem. realy big one. -
lelemaster - 20.07.2012
First of all, give us the code of the creating object.
There is 2 reason:
1- You created a Dynamic object and you did MoveObject( MoveObject is for CreateObject and MoveDyanamicObject is for CreateDynamicObject etc. Depends of your streamer ).
2- You may be did MoveObject at the same position of the current object. So the object will move the his position so you wont see anything moving.
pawn Код:
MoveObject(NCRGate1,96.44, 1924.51, 39,0.00, 0.00, -88.14);
MoveObject(NCRGate2, 96.44, 1924.51,7.13,0.00, 0.00, -88.14);
You did 2 gates that move at different position but same X and Y, 1 that goes really high and 1 that stays near the ground.
EDIT: SuperViper has been faster than me...