04.06.2010, 12:25
Hi candyboy,
It's really easy code really.
This is how I would of tried it.
Pretty simple stuff. Give it a try.
Cheers,
TJ
It's really easy code really.
This is how I would of tried it.
Код:
//Top of script
new gate;//making the global variable for later use.
//On GameModeInit
gate = CreateObject(987, 315.5947265625, -1172.8193359375, 79.9140625, 0.000000, 0.000000, 224.30236816406); //Assigning a value to the global variable we previously made
//OnPlayerCommandText
if(strcmp(cmd,"/open",true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,315.5947265625, -1172.8193359375, 79.9140625))
{
MoveObject(gate,NEWX,NEWY,NEWZ,SPEED);//We are then moving the object, now known as GATE to its new position.
}
return 1;
}
Cheers,
TJ

